books
Free Books / Computers / Practical mod_perl /

previous page: 3.9.5. Nonstandard mod_perl-Enabled Apache Installation
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 3.10. How Can I Tell if mod_perl Is Running?

3.9.6. Nonstandard mod_perl-Enabled Apache Installation with CPAN.pm




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

Again, CPAN makes installation and upgrades simpler. You have seen how to install a mod_perl-enabled server using CPAN.pm's interactive shell. You have seen how to install Perl modules and Apache locally. Now all you have to do is to merge these techniques.

Assuming that you have configured CPAN.pm to install Perl modules locally, the installation is very simple. Start the CPAN shell, set the arguments to be passed to perl Makefile.PL (modify the example setting to suit your needs), and tell CPAN.pm to do the rest for you:

panic% perl -MCPAN -eshell
cpan> o conf makepl_arg 'DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 \
      PREFIX=/home/stas APACHE_PREFIX=/home/stas/apache'
cpan> install mod_perl

When you use CPAN.pm for local installation, you need to make sure that the value of makepl_arg is restored to its original value after the mod_perl installation is complete, because if you install other Perl modules you probably don't want to pass mod_perl flags to them. The simplest way to do this is to quit the interactive shell and then re-enter it. There is another way to do it without quitting, but it's very cumbersome—if you want to learn about the other option, refer to the CPAN.pm manpage.

 

Continue to:

  • prev: 3.9.5. Nonstandard mod_perl-Enabled Apache Installation
  • Table of Contents
  • next: 3.10. How Can I Tell if mod_perl Is Running?

Books by Stas Bekman:















TOP
previous page: 3.9.5. Nonstandard mod_perl-Enabled Apache Installation
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 3.10. How Can I Tell if mod_perl Is Running?

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

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

© 2007-2021 StasoSphere.com