1.第37行更改为当前apache的路径,例如:C:\Apache24
2.如果发现apache监听端口被占用,默认端口为80,则在第60行中的Listen 80改为其他端口号
3.取消批注#LoadModule cgi_module modules/mod_cgi.so
4.取消批注#LoadModule version_module modules/mod_version.so
5.在第251行中的DocumentRoot “${SRVROOT}/htdocs” 改为 DocumentRoot “C:\bugzilla-5.0.6”
6.取消批注#AddHandler cgi-script .cgi
7.配置CGI访问,通过“win+R”键,输入regedit回车,在HKEY_CLASSES_ROOT.cgi\Shell\ExceCGI\Command路径下修改默认参数:
(1)如果使用的是ActivePerl,则默认参数改为C:\Perl\bin\perl.exe -T
(2)如果使用的是Strawberry Perl,则默认参数改为C:\Strawberry\perl\bin\perl.exe -T
8.在文件最后输入以下字符:
Alias “/bugzilla/” “C:\bugzilla-5.0.6”
<Directory “C:\bugzilla-5.0.6”>
ScriptInterpreterSource Registry-Strict
Options +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride All
Require all granted
PS:以上路径名都为当前路径名