Neil, >Hello Sir >Don't know if you sort your problem out or not. >I had the same issue just yesterday our time ;-) >If you follow this: http://apache.perl.org/docs/2.0/user/intro/start_fast.html#Configuration > >Not the installation part and try the example scripts and Handler example then it will work for you. >Seems like Redhat had done all the work already for us in Redhat9 install rpm's.
Yes, I've seen and tried some of the things in this document, but not a complete download and install. Are you also working with Red Hat 9? Did you put these things in your httpd.conf? LoadModule perl_module modules/mod_perl.so PerlModule Apache2 PerlModule Apache::compat Or did you leave httpd.conf as is and go to trying the scripts? Currently, I have the above in my httpd.conf and I also have the following in my httpd.conf. Alias /cgi-perl/ "/var/www/cgi-perl/" <Location /cgi-perl> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options ExecCGI </Location> I place the following script in /var/www/cgi-perl and when I request it from a browser I get a popup asking if I want to save the file to disk or open it. Not the behavior I expect. #! /usr/bin/perl print "Content-type: text/plain\n\n"; print "Mod_perl 2.0 rocks!\n"; Another simple file I have in /var/www/cgi-perl is: #! /usr/bin/perl # perltest.pl print "Content-Type: text/html\n\n"; print "<html><head><title>Script Environment</title></head><body>\n"; print map{ "$_=$ENV{$_}<br>\n"} sort (keys (%ENV)); print "</body></html>\n"; And curiously enough, this works when accessed by my browser, and one of the environment variables it prints to the screen is: MOD_PERL=mod_perl/1.99_07-dev However, the LoadModule perl_module modules/mod_perl.so in httpd.conf is still causing an error message when I start and stop the server. [EMAIL PROTECTED] cgi-perl]# /usr/sbin/apachectl stop [Thu Jun 10 08:13:57 2004] [warn] module perl_module is already loaded, skipping [EMAIL PROTECTED] cgi-perl]# /usr/sbin/apachectl start [Thu Jun 10 08:14:24 2004] [warn] module perl_module is already loaded, skipping And there is still no notice of mod perl in the logs. [Thu Jun 10 08:17:07 2004] [warn] child process 21923 still did not exit, sending a SIGTERM [Thu Jun 10 08:17:07 2004] [warn] child process 21924 still did not exit, sending a SIGTERM [Thu Jun 10 08:17:07 2004] [warn] child process 21926 still did not exit, sending a SIGTERM [Thu Jun 10 08:17:07 2004] [warn] child process 21927 still did not exit, sending a SIGTERM [Thu Jun 10 08:17:07 2004] [notice] caught SIGTERM, shutting down [Thu Jun 10 08:17:15 2004] [warn] module perl_module is already loaded, skipping [Thu Jun 10 08:17:16 2004] [notice] Digest: generating secret for digest authentication ... [Thu Jun 10 08:17:16 2004] [notice] Digest: done [Thu Jun 10 08:17:17 2004] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html