将mod_fastcgi.so复制到apache的modules目录下
在httpd.conf文件下添加
LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiServer "C:/php/php-cgi.exe" -processes 3
ScriptAlias "/fcgi-bin/" "c:/php/"
Action php-fastcgi "/fcgi-bin/php-cgi.exe"
AddType application/x-httpd-php .php