Still trying to get this rebuilt Red Hat Linux box to fly, it's getting off the ground but not staying in the air. I'm not sure if this is a problem with Apache or with mod_perl2. If it's not a Perl problem, I apologize, but if someone could point me in the right direction I'd appreciate it.
We re-installed libwww-perl and mod_perl2 bundles via CPAN and Apache 2.2.3 server. We tried to start Apache and got the following error:
#apachectl start
apachectl: Configuration syntax error, will not run "start":
Syntax error on line 610 of /etc/httpd/conf/httpd.conf:
Invalid command 'PerlModule', perhaps misspelled or defined by a modul
+e not included in the server configuration
So we go to line 610 in httpd.conf and find the code block below. We can start Apache *if* we comment out this entire section, but then some of our custom-written Perl modules don't seem to work:
Alias /perl/ /cgi-bin/
PerlModule Apache::Registry
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
#PerlOptions +ParseHeaders
Options ExecCGI FollowSymLinks
#Order allow,deny
Allow from all
#AllowOverride All
PerlSendHeader On
</Location>
OK, so some digging/research shows changes we didn't know we had to make to httpd.conf:
PerlModule ModPerl::Registry
Alias /perl/ /home/httpd/perl/
<Location /perl>
PerlHandler ModPerl::Registry
...
So we made the changes, still getting the same error. So then we commented out everything between the Location tags, thinking there might be some syntax error in there causing problems. Nothing changed. Our limited experience at this point has us asking for help on this as we're not sure what to check out next.