I had some trouble getting it working with Apache2 and mod_perl2. After fooling around with it I switched to Apache 1.3.x with mod_perl1. Took some tweaking but I was able to get it working fine. I don't believe AddModule works correctly with Apache2. I'm pretty sure LoadModule is the correct way to load modules. Here is how I tested my environment btw.
print "Content-type: text/plain\r\n\r\n"; print "Server's environment\n"; foreach ( keys %ENV ) { print "$_\t$ENV{$_}\n"; }
Basically this prints out your environment within Apache. You should see mod_perl as your gateway I believe. Also a setting somewhere for which version of mod_perl you are running. The program should just work without the #! at the top. If it doesn't then try adding it. This means you are not loading mod_perl. It runs fine as is if mod_perl is loaded.

Some place to start at least.

After thinking about it, here is an example of what the above produced (edited of course):

Server's environment
PERL_SEND_HEADER	On
SERVER_NAME	test
SERVER_SOFTWARE	Apache/1.3.31 (Unix) mod_perl/1.29
GATEWAY_INTERFACE	CGI-Perl/1.1
MOD_PERL	mod_perl/1.29


Hope this helps

In reply to Re: mod_perl.so installed, not running? by u235sentinel
in thread mod_perl.so installed, not running? by Anonymous Monk

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.