1在此之前先安装Apache然后再安装PHP5安装时选择apche服务器,完成后找到Apache\conf目录下的httpd.conf文件将port 80改成别的参数比如8083(系统不占用的)80端口一般被IIS所占用.
2找到在其后面加入
ScriptAlias /cgi-bin/ "d:/Apache/cgi-bin/"
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php/php-cgi.exe"
3测试
建立如下文件到htdocs\html目录下
phpinfo.php
本文地址:http://com.8s8s.com/it/it27370.htm