14.1 Configuring mod_perl

Here's how one would set up mod_perl for the build:

# cd /opt/apache
# tar zxvf mod_perl-1.2x.tar.gz
# cd mod_perl-1.2x

mod_perl should be configured with a command similar to:

# perl Makefile.PL USE_APXS=1 WITH_APXS=/path/to/apache/bin/apxs EVERYTHING=1

Note to SSL users: If one configured and installed mod_ssl with the -enable-rule=EAPI option, then the above is fine. If not, one will have to enable compilation with the CFLAGS set to -DEAPI as described in the PHP section.

If the configuration of mod_perl complains of missing Perl modules, one can obtain them from http://www.cpan.org. Build and install the modules, and then restart the mod_perl build. Each module that may be required will have specific install instructions, usually within an INSTALL file. Usually the process for installing a Perl module is:

# perl Makefile.PL
# make 
# make install