Practical mod_perl / HTML Book /



previous page: 24.5.1. Enabling mod_perl
  
page up: HTML Version of the book
  
next page: 24.5.3. Startup File

24.5.2. Accessing the mod_perl 2.0 Modules


To prevent you from inadvertently loading mod_perl 1.0 modules, mod_perl 2.0 Perl modules are installed into dedicated directories under Apache2/. The Apache2 module prepends the locations of the mod_perl 2.0 libraries to @INC: @INC is the same as the core @INC, but with Apache2/ prepended. This module has to be loaded just after mod_perl has been enabled. This can be accomplished with:

use Apache2 ( );

in the startup file. If you don't use a startup file, you can add:

PerlModule Apache2

to httpd.conf, due to the order in which the PerlRequire and PerlModule directives are processed.

 

Continue to:

  • prev: 24.5.1. Enabling mod_perl
  • Table of Contents
  • next: 24.5.3. Startup File







TOP
previous page: 24.5.1. Enabling mod_perl
  
page up: HTML Version of the book
  
next page: 24.5.3. Startup File


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com