I'll certainly try to help. Just remember that I didn't get it working under Apache2. Hopefully someone who is more familiar with the workings of Apache2 will jump on in. Also, in 1.3.31 I setup up a static (not dynamic) apache server. So when I do http -l I see the module is loaded (I did that to help discover whether mod_perl was loaded or not). Perhaps you should try that with Apache2 just to make sure it's there (just a thought).
When I compiled apache if I recall correctly, I had set up mod_perl first. Go through the INSTALL instructions and follow them step by step. Here is a sample of what I did:
$ cd mod_perl-1.XX
$ perl Makefile.PL \
APACHE_SRC=../apache_1.3.X/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1 \
After this I did a "make" followed by a "make install". I then did the following with apache:
$ cd apache_1.3.X
$ ./configure \
--prefix=/path/to/install/of/apache \
--activate-module=src/modules/perl/libperl.a \
...
followed by a "make" then a "make install". I'm wondering if that's the problem. The module wasn't activated/copied so Apache can't find it/load it. Just a thought. You might to do a find/locate for mod_perl. See if it's copied anywhere.
The above IfModule looks fine. Try rebuilding mod_perl/Apache. See if that helps.
Btw, everything above is straight from the INSTALL instructions that came with mod_perl. It took me a few tries before I finally figured out what I was doing wrong. It works perfectly if the instructions are followed properly.
One more thing that might help. This web site helped a great deal in learning how to get mod_perl working properly
http://perl.apache.org/docs/index.html
I highly recommend going through the docs especially the section on building everything. Now that I've succeeded in getting it working with 1.3.31, I'm thinking of finding a test system and building Apache 2 with mod_perl2. Which reminds me, make sure you are running mod_perl 2 with Apache 2. Otherwise it definitely will not work properly
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.