NAME
Configuring mod_perl 2.0 for Win32
Description
This document discusses how to configure mod_perl 2.0.
Configuration
Add this line to C:/Apache2/conf/httpd.conf:
LoadModule perl_module modules/mod_perl.so
Be sure that the path to your Perl binary (eg, C:/Perl/bin) is in your PATH
environment variable. You may also want to use a start-up script to load commonly used modules; this can be done with a directive as, eg,
PerlRequire
"C:/Apache2/conf/extra.pl"
where a sample start-up script C:/Apache2/conf/extra.pl is
use
Apache2 ();
use
ModPerl::Util ();
use
Apache::RequestRec ();
use
Apache::RequestIO ();
use
Apache::RequestUtil ();
use
Apache::Server ();
use
Apache::ServerUtil ();
use
Apache::Connection ();
use
Apache::Log ();
use
APR::Table ();
use
Apache::compat ();
use
ModPerl::Registry ();
use
CGI ();
1;
The Apache2
module is used to add to @INC
the relevant directories underneath, eg, /Perl/site/lib/Apache2/ used when building mod_perl 2.0 with an MP_INST_APACHE2=1
option to perl Makefile.PL
(the PPM
packages discussed above were built this way). Apache::compat
is used to provide backwards compatibility with mod_perl 1.0. ModPerl::Registry
, named so as not to conflict with Apache::Registry
of mod_perl 1.0, is used for registry scripts.
Maintainers
Maintainer is the person(s) you should contact with updates, corrections and patches.
Randy Kobes <randy@theoryx5.uwinnipeg.ca>
Authors
Randy Kobes <randy@theoryx5.uwinnipeg.ca>
Only the major authors are listed above. For contributors see the Changes file.