ARiccela has asked for the wisdom of the Perl Monks concerning the following question:
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:#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
OK, so some digging/research shows changes we didn't know we had to make to httpd.conf: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>
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.PerlModule ModPerl::Registry Alias /perl/ /home/httpd/perl/ <Location /perl> PerlHandler ModPerl::Registry ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache 2.2.3 not starting, just upgraded to mod_perl2
by Anonymous Monk on Jul 27, 2009 at 13:10 UTC | |
by ARiccela (Novice) on Jul 27, 2009 at 14:15 UTC | |
by Anonymous Monk on Jul 27, 2009 at 14:25 UTC | |
|
Re: Apache 2.2.3 not starting, just upgraded to mod_perl2
by perrin (Chancellor) on Jul 27, 2009 at 14:22 UTC | |
by ARiccela (Novice) on Jul 27, 2009 at 16:23 UTC | |
by ARiccela (Novice) on Jul 27, 2009 at 15:22 UTC |