Mod Perl

From LemonWiki共筆
Jump to navigation Jump to search

install the mod_perl module by ActivePerl

install the ActivePerl[edit]


  • install ActivePerl at C:\usr\

install the mod_perl module by ActivePerl[edit]

Go to the folder where perl.exe locate

  • C:\usr\bin>ppm
PPM - Programmer's Package Manager version 3.2.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a division of Sophos.

Entering interactive shell. Using Term::ReadLine::Perl as readline library.

Type 'help' to get started.

add a repository

check the mod_perl module

  • ppm> search mod_perl
Searching in Active Repositories
  1. Apache-mod_perl_gui~    [1.31] mod_perl Guide
  2. Apache-mod_perl_gui~    [1.31] Apache-mod_perl_guide
  3. mod_perl               [2.0.3] Embed a Perl interpreter in the Apache/2.2~
  4. mod_perl-1           [1.29_01~ Embed a Perl interpreter in the Apache/1.3~
  5. mod_perl-2.0           [2.0.3] Embed a Perl interpreter in the Apache/2.0~
  6. mod_perl-eapi-1      [1.29_01~ Embed a Perl interpreter in the Apache/1.3~

install the module

  • ppm> install mod_perl-2.0
or ppm> install 5
...
The Apache module mod_perl.so is needed to complete the installation,
and should be placed in your Apache2 modules directory. I will
now fetch and install this for you.

Fetching http://theoryx5.uwinnipeg.ca/ppms/x86/mod_perl-2.0.so ...  done! 
  • Where should mod_perl.so be placed? [C:/Apache2/modules] C:/Program Files/Apache Group/Apache2/modules
mod_perl.so has been successfully installed to C:/PROGRA~1/APACHE~1/Apache2/modules
Successfully installed mod_perl-2.0 version 2.0.3 in ActivePerl 5.8.7.813.

modify the configuration file of apache server[edit]

  • modify the file C:\Program Files\Apache Group\Apache2\conf\httpd.conf, add the following lines
LoadFile "C:/usr/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so
  • restart Apache web service

Reference