I have installed the mod_perl and 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! |
- Re: mod_perl configure yusun
- Re: mod_perl configure frans
- Re: mod_perl configure yusun