Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Apache 2.2.3 not starting, just upgraded to mod_perl2

by ARiccela (Novice)
on Jul 27, 2009 at 12:34 UTC ( [id://783525]=perlquestion: print w/replies, xml ) Need Help??

ARiccela has asked for the wisdom of the Perl Monks concerning the following question:

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.

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
    LoadFile "path/to/perl.so" LoadModule perl_module modules/mod_perl.so
      So, uh, if these libs weren't, uh, presently found in any directory, that would probably be why we're having problems...? Would this be a problem of a bad mod_perl2 install or an incorrect RH config? I'm assuming RH but I'd like confirmation on that. Thanks!
Re: Apache 2.2.3 not starting, just upgraded to mod_perl2
by perrin (Chancellor) on Jul 27, 2009 at 14:22 UTC
    You either don't have mod_perl installed or aren't loading the module. Can you tell us how you installed mod_perl and apache?
      The solution to the problem was twofold - CGI.pm wasn't installed(!), which I could have sworn was installed, and the aforementioned change to httpd.conf was needed as well. Now Apache starts and our website can be seen. Now the db can't be hit... more fun! Thank you to all who helped!
      @Perrin - mod_perl2 was installed by me via CPAN shell. Apache 2.2.3 was installed by SA setting up RH box. I do not know exactly what he did, and this person isn't exactly forthcoming with answers when I ask questions. @AnonMonk - I have just found that site, have begun to dig through, thank you for the lead.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://783525]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found