Mod Perl: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
 
Line 42: Line 42:


== modify the configuration file of apache server ==
== modify the configuration file of apache server ==
modify the file C:\Program Files\Apache Group\Apache2\conf\httpd.conf, add the following lines
* modify the file C:\Program Files\Apache Group\Apache2\conf\httpd.conf, add the following lines
<pre>
<pre>
LoadFile "C:/usr/bin/perl58.dll"
LoadFile "C:/usr/bin/perl58.dll"
Line 48: Line 48:
</pre>
</pre>


* restart Apache web service


Reference
Reference

Revision as of 08:18, 31 October 2007

install the mod_perl module by ActivePerl

  • ActivePerl 5.8.7.813
  • Apache/2.0.54 (Win32)


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.
  • 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~
  • 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