Differences between revisions 5 and 6
Revision 5 as of 2007-09-27 18:29:53
Size: 1838
Editor: d51A43022
Comment: Tried to clean it up a bit... didn't go to good though
Revision 6 as of 2009-09-20 22:13:27
Size: 1838
Editor: localhost
Comment: converted to 1.6 markup
No differences found!


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.

  1. get sources for apache2 & modperl:

  1. 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" 
    sudo make install''
  2. configure and compile perl.
    • 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

perl Makefile.PL MP_USE_DSO=1  MP_APXS=/path/to/apxs

More information can be found with perldoc docs/user/install/install.pod


Server Configuration

Hello, World!

EnablingTheUseOfModPerl (last edited 2009-09-20 22:13:27 by localhost)