THIS IS STILL A SCRATCHPAD DOCUMENT!
Caveat: This document will describe installing modperl2 on *nix only. Windows and modperl1 users - sorry. We'll add you later...
Prerequisites
Apache 2.0.47 or higher. As of this writing, the latest releases are 2.0.61 and 2.2.6 If you are using the Prefork MPM, you'll need Perl 5.6.1 or better.
If you are using a threaded Perl with the Prefork MPM, you must use ithreads. 5005threads won't work. If you are using a threaded MPM (worker, perchild), you'll need Perl 5.8.0 with ithreads.
Finally, installing Bundle::Apache2 from CPAN is a good idea.
Compiling
modperl2 can be installed as a DSO or as a static compiled-in module. We'll use the DSO option.
0. get sources for apache2 & modperl:
mod_perl2:
Grab the latest version (2.0.2 as of this writing) from http://perl.apache.org/dist/
Apache:
Grab the httpd sources from a mirror: http://httpd.apache.org/download.cgi
- configure and compile apache2:
2. configure and compile perl.
tar -xzvf httpd-2.2.3.tar.gz cd httpd-2.2.3 ./configure --with-prefix=/usr/local/apache2.2 --enable-mods-shared="ALL" make sudo make install''
Caveats:
Apache2 MUST be installed already.
You need to compile mod_perl with the same compiler used to compile perl. use perl -V to find out which compiler was used.
tar -xzvf mod_perl-2.0..2.tar.gz cd mod_perl-2.0.2 perl -V:useithreads -V:use5005threads useithreads='undef'; use5005threads='undef'; perl Makefile.PL MP_USE_DSO=1 MP_APXS=/path/to/apxs
More information can be found with perldoc docs/user/install/install.pod