On Tue, 7 Feb 2006, JupiterHost.Net wrote:
> Date: Tue, 07 Feb 2006 13:09:06 -0600
> From: JupiterHost.Net <[EMAIL PROTECTED]>
> To: modperl@perl.apache.org
> Subject: mod_perl 2 newbie
>
> Hello List!
>
> I'd like to build mod_perl/2.0.2 statically built into apache as per:
>
> http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl
>
> However instead of making apache2 as part of mod_perl2 I'd like to
> 1) configure/make/etc mod_perl 2
> 2) add other modules
> 3) build apache 2 with configure options as dictated by steps 1 and 2
>
> Much like we can do with apache 1 by:
>
> 1) perl Makefile.PL APACHE_SRC=apache/src DO_HTTPD=1 NO_HTTPD=1
> USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
> make
> make test
> make install
>
> 2) add other modules
>
> 3) do configure as needed from step 2 and with
> '--activate-module=src/modules/perl/libperl.a' for step 1
>
> Is this possible? I didn't see any documentation for this route or
> configure options like 1's "[NO|DO|PREP]_HTTPD"
>
> Any insight woudl be excellent!
This is what I do to build it:
In apache src dir:
./configure \
--prefix="/usr/local/apache_2.0.54+mod_perl" \
--enable-so \
--enable-proxy \
--enable-ssl \
--enable-proxy-http \
--with-mpm=prefork \
--enable-modules=most \
--enable-mods-shared=max
make install
In mod_perl src dir:
perl Makefile.PL MP_DEBUG=1 MP_USE_DSO=1
MP_APXS=/usr/local/apache_2.0.54+mod_perl/bin/apxs MP_TRACE=1
make install
It works for me.
Regards,
Jie