Alex/Pugdog,
I have just tried to install mod_perl and can't for the life of me get it to work properly.
Heres what I did......
From telnet I did Makefile.PL, then make and make install.
That all worked ok.
Then I uncommented the following in httpd.conf
LoadModule perl_module /usr/lib/apache/libperl.so
AddModule mod_perl.c
Then at the bottom of httpd.conf I added.....
PerlRequire /etc/httpd/conf/startup.pl
PerlFreshRestart On
Alias /cgi-bin/ /home/sites/home/web/cgi-bin/
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
</Location
.......and finally made the startup.pl file and put this is it.....
#!/usr/bin/perl
BEGIN{
use Apache();
use lib Apache->server_root_relative('/etc/httpd');
}
use Apache::Registry();
use Apache::Constants();
use CGI qw(-compile :all);
use CGI::Carp();
1;
When I look at the environment variables, it still says CGI/1.1 and mod_perl/1.24 shows up twice when I look at the server_software variable.
What did I do wrong?....
Thanks.
Paul Wilson.
http://www.wiredon.net
I have just tried to install mod_perl and can't for the life of me get it to work properly.
Heres what I did......
From telnet I did Makefile.PL, then make and make install.
That all worked ok.
Then I uncommented the following in httpd.conf
LoadModule perl_module /usr/lib/apache/libperl.so
AddModule mod_perl.c
Then at the bottom of httpd.conf I added.....
PerlRequire /etc/httpd/conf/startup.pl
PerlFreshRestart On
Alias /cgi-bin/ /home/sites/home/web/cgi-bin/
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
</Location
.......and finally made the startup.pl file and put this is it.....
#!/usr/bin/perl
BEGIN{
use Apache();
use lib Apache->server_root_relative('/etc/httpd');
}
use Apache::Registry();
use Apache::Constants();
use CGI qw(-compile :all);
use CGI::Carp();
1;
When I look at the environment variables, it still says CGI/1.1 and mod_perl/1.24 shows up twice when I look at the server_software variable.
What did I do wrong?....
Thanks.
Paul Wilson.
http://www.wiredon.net