Practical mod_perl / HTML Book /



previous page: 20.1.2. When to Use Apache::DBI (and When Not to Use It)
  
page up: HTML Version of the book
  
next page: 20.1.4. Debugging Apache::DBI

20.1.3. Configuring Apache::DBI


Apache::DBI will not work unless mod_perl was built with:

PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1

or:

EVERYTHING=1

during the perl Makefile.PL ... stage.

After installing this module, configuration is simple—just add a single directive to httpd.conf:

PerlModule Apache::DBI

Note that it is important to load this module before any other Apache*DBI module and before the DBI module itself. The best rule is just to load it first of all. You can skip preloading DBI at server startup, since Apache::DBI does that for you, but there is no harm in leaving it in, as long as Apache::DBI is loaded first.

 

Continue to:

  • prev: 20.1.2. When to Use Apache::DBI (and When Not to Use It)
  • Table of Contents
  • next: 20.1.4. Debugging Apache::DBI







TOP
previous page: 20.1.2. When to Use Apache::DBI (and When Not to Use It)
  
page up: HTML Version of the book
  
next page: 20.1.4. Debugging Apache::DBI


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