I've done a few projects with mod_perl and have always installed everything by hand from source. But, I have a Fedora 9 box which already had both installed and recently upgraded with yum but I am having trouble verifying the installation.

This is what my httpd.conf file did have:

RewriteEngine on RewriteRule /s/ /index.cgi [NC,QSA] <Directory "/path/to/site/docs"> Options Indexes Includes ExecCGI FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
I dropped this in hoping for a bit of a speed boost:
RewriteEngine on RewriteRule /s/ /index.cgi [NC,QSA] <Location "/path/to/site/docs/index.cgi"> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI </Location> <Directory "/path/to/site/docs"> # Options Indexes Includes ExecCGI FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
There was no noticeable - anything. In the past, when I have done something like this, I got a quick and easy CGI boost. But, in fact the site worked exactly as before. I did notice that making changes to index.cgi didn't require a restart of Apache (which used to be required with mod_perl). And so after doing:
# telnet localhost 81 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. HEAD / HTTP/1.0 HTTP/1.1 200 OK Date: Wed, 04 Feb 2009 23:24:38 GMT Server: Apache/2.2.9 (Fedora) Connection: close Content-Type: text/html; charset=ISO-8859-1 Connection closed by foreign host.
... I didn't see anything in the header indicating mod_perl. So, then I added a LoadModule directive to the httpd.conf and upon restarting Apache I got an error saying mod_perl was already loaded.

What am I missing here?


In reply to Yum install of Apache & mod_perl by Rodster001

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.