stew has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am trying to install mod_perl with limited success. I believe (y/n?) that you can pass Apache configuration directives thru mod_perls Makefile.PL and this is how I am going about it

%perl Makefile.PL \
APACHE_SRC=../apache_1.3.26/src \
DO_HTTPD=1 \
USE_APACI=1 EVERYTHING=1 \
prefix=/usr/local/apache \
--enable-module=so \
--enable-module=rewite


The mod_perl Makefile.PL script spits out the following error

'--ENABLE-MODULE' is not a known MakeMaker parameter name.
'--PREFIX' is not a known MakeMaker parameter name.

And after I've rebuilt the Apache source and tried to restart the server, Apache tells me it doesn't recognise the LoadModule directive in my httpd.conf If it is possible to pass Apache ./configure parameters thru mod_perl's makefile how do I go about it and if not how do I install mod_perl and keep all the Apache features I like?

Cheers

Stew

Replies are listed 'Best First'.
Re: mod_perl Installation Problems
by stew (Scribe) on Feb 25, 2003 at 13:28 UTC
    Problem Solved!!

    Ran mod_perls make file thus

    perl Makefile.PL APACHE_SRC=../apache_1.3.26/src NO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1

    and added the following to my Apache ./configure

    --activate-module=src/modules/perl/libperl.a

    Thanks
Re: mod_perl Installation Problems
by rdfield (Priest) on Feb 25, 2003 at 11:22 UTC
    Have you read the Guide?

    rdfield

Re: mod_perl Installation Problems
by stew (Scribe) on Feb 25, 2003 at 11:41 UTC
    I have indeed (and again) I understand a bit more about 'DO_HTTPD', 'USE_APACI' and 'USE_APACI'. I opted to leave them out (and of course the Apache ./configure parameters) But the mod_perl Makefile still breaks my httpd. :(