(!) 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 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.

  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" 
    make
    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
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

Installation

Server Configuration

Hello, World!

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