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.

In reply to Apache 2.2.3 not starting, just upgraded to mod_perl2 by ARiccela

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.