2006-03
25

1. 安装Apache ( http://httpd.apache.org) )和 ActiveState Perl (http://www.activestate.com/ )。

2. 安装mod_perl。

ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/mod_perl.ppd

安装完毕之后会提示输入Apache的路径,输入类似于 D:/Apache2/modules。

3. 配置mod_perl。修改httpd.conf,增加以下几行:

LoadFile "C:/Perl/bin/perl58.dll"
LoadModule perl_module modules/mod_perl.so

<Files *.cgi>
    SetHeader perl-script
    PerlHandler ModPerl::PerlRun
    Options +ExecCGI
</Files>

4. 重新启动Apache。




添加评论