I have installed the mod_perl
% tar xzvf apache_x.x.x.tar.gz % tar xzvf mod_perl-x.xx.tar.gz % cd mod_perl-x.xx % perl Makefile.PL APACHE_SRC=../apache_x.x.x/src \ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 % make && make test && make install % cd ../apache_x.x.x % make install ########
The report said it is success.
Then I changed the httpd.conf as
Alias /cgi-perl/
/usr/ns-home/cgi-bin/
<Location /cgi-perl/> #AllowOverride None SetHandler perl-script PerlHandler Apache::PerlRun Options +ExecCGI allow from all PerlSendHeader On PerlSetVar PerlRunOnce On </Location> When I restarted httpd, there was no error reported. But when I used the following CGI to test whether the mod_perl was working or not. The report was no. Why? ########### #!/usr/bin/perl print "Content-type: text/plain\n\n"; print "Server's environment\n"; foreach ( keys %ENV ) { print "$_\t$ENV{$_}\n"; } ##### The result is : : GATEWAY_INTERFACE CGI/1.1 : It means that I have configured this location to run under mod_cgi and not mod_perl. How can I configure the location to run under mod_perl? Thanks! |
- mod_perl Slava
- Re: mod_perl yusun
- Re: mod_perl Tobias Hoellrich
- Re: mod_perl yusun
- Re: mod_perl yusun
- Mod_perl Murugan K