Mod Perl: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
== install the mod_perl module by ActivePerl == | == install the mod_perl module by ActivePerl == | ||
{{Right| hedding = | text = * ActivePerl 5.8.7.813 | {{Right| hedding = | text = * http://favico.collection.googlepages.com/activeperl.png [http://www.activestate.com/Products/activeperl/ ActivePerl]/5.8.7.813 | ||
* Apache/2.0.54 (Win32) }} | * http://favico.collection.googlepages.com/httpd.apache.org.favicon.png [http://httpd.apache.org/ Apache]/2.0.54 (Win32) }} | ||
Go to the folder where perl.exe locate | Go to the folder where perl.exe locate | ||
| Line 14: | Line 14: | ||
Type 'help' to get started. | Type 'help' to get started. | ||
</pre> | </pre> | ||
add a repository | |||
* ppm> rep add http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 | * ppm> rep add http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 | ||
check the mod_perl module | |||
* ppm> search mod_perl | * ppm> search mod_perl | ||
<pre> | <pre> | ||
| Line 26: | Line 29: | ||
6. mod_perl-eapi-1 [1.29_01~ Embed a Perl interpreter in the Apache/1.3~ | 6. mod_perl-eapi-1 [1.29_01~ Embed a Perl interpreter in the Apache/1.3~ | ||
</pre> | </pre> | ||
* ppm> install 5 | |||
install the module | |||
* ppm> install mod_perl-2.0 | |||
: or ppm> install 5 | |||
<pre> | <pre> | ||
... | ... | ||
| Line 39: | Line 45: | ||
Successfully installed mod_perl-2.0 version 2.0.3 in ActivePerl 5.8.7.813. | Successfully installed mod_perl-2.0 version 2.0.3 in ActivePerl 5.8.7.813. | ||
</pre> | </pre> | ||
== modify the configuration file of apache server == | == modify the configuration file of apache server == | ||
Revision as of 21:41, 31 October 2007
install the mod_perl module by ActivePerl
|
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
- 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