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...
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.
modperl2 can be installed as a DSO or as a static compiled-in module. We'll use the DSO option.
get sources for apache2 & modperl:
- configure and compile apache2:
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''
- configure and compile perl.
- 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