只要修改httpd.conf中两个配置项的值即可:
DocumentRoot "E:/workspacePHP/what"
<Directory "E:/workspacePHP/what">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
配置文件还需要指定cgi-bin,共有两个位置,一般来说cgi-bin目录包含文件printenv.pl。
共有两个需要注意配置的配置项:
ScriptAlias /cgi-bin/ "E:/eclipsePHPworkspace/what/cgi-bin/"
<Directory "E:/eclipsePHPworkspace/what/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>