Windows+Apache+mod_perl安装笔记
-
安装mod_perl。
ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd
安装完毕之后会提示输入Apache的路径,输入类似于 D:/Apache2/modules。
-
配置mod_perl。修改httpd.conf,增加以下几行:
LoadFile "C:/Perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so <Files *.cgi> SetHandler perl-script PerlHandler ModPerl::PerlRun Options +ExecCGI </Files>
-
重新启动Apache。
2009/9/27更新~
原来的安装地址http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl.ppd已经变成了ActivePerl 6.xx的地址, 而本文使用的是ActivePerl 5.xx,地址修改为http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd。