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

Okay, so I'm convinced mod_perl is not running. Can you help me get it started? Here's what I did. I first installed Apache2 with ./configure --prefix=/usr/local/apache2 --enable-info --enable-headers --enable-so --enable-speling --enable-ssl --enable-shared=perl. I recompilied and reinstalled after my first post adding the --enable-shared=perl pricisly because it wasn't working. Then I do make and make install. After that I try to install mod_perl with  perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs. Then make and make install. After that I added  LoadModule perl_module  modules/mod_perl.so to httpd.conf and I added
<IfModule mod_perl.c> #Alias /perl/ /home/httpd/perl/ <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> </IfModule>
to httpd.conf as well. However there's no mod_perl.c when I type httpd -l so the above IfModule statement isn't doing much probably.....? Any ideas? Thanks for the help. P

Replies are listed 'Best First'.
Re^5: mod_perl.so installed, not running?
by u235sentinel (Hermit) on Jul 29, 2004 at 15:04 UTC
    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