in reply to Re^4: mod_perl.so installed, not running?
in thread mod_perl.so installed, not running?

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
  • Comment on Re^5: mod_perl.so installed, not running?