Practical mod_perl / HTML Book /



previous page: 3.5.4. Building mod_perl as a DSO via APACI
  
page up: HTML Version of the book
  
next page: 3.6. Building mod_perl with Other Components

3.5.5. Building mod_perl as a DSO via APXS


We've seen how to build mod_perl as a DSO inside the Apache source tree, but there is a nifty alternative: building mod_perl as a DSO outside the Apache source tree via the new Apache 1.3 support tool called APXS. The advantage is obvious: you can extend an already installed Apache with mod_perl even if you don't have the sources (for instance, you may have installed an Apache binary package from your vendor or favorite distribution).

Here are the build steps:

panic% tar xzvf mod_perl-1.xx.tar.gz
panic% cd mod_perl-1.xx
panic% perl Makefile.PL \
    USE_APXS=1 \
    WITH_APXS=/path/to/bin/apxs \
    EVERYTHING=1 \
    [...]
panic% make && make test
panic# make install

This will build the DSO libperl.so outside the Apache source tree and install it into the existing Apache hierarchy.

 

Continue to:

  • prev: 3.5.4. Building mod_perl as a DSO via APACI
  • Table of Contents
  • next: 3.6. Building mod_perl with Other Components







TOP
previous page: 3.5.4. Building mod_perl as a DSO via APACI
  
page up: HTML Version of the book
  
next page: 3.6. Building mod_perl with Other Components


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