1、先检查是否iis有异常
是否加载异常dll,比如安全狗、云锁、360网站卫士等
2、检查php环境是否有异常
进入cmd
d:
cd D:\SOFT_PHP_PACKAGE\php5.3
php-cgi.exe . -c d:\wwwroot\xxxx\index.php #使用当前目录下php.ini 执行对应php文件
3、检查权限
对应php目录需要给everyone 读权限
fcgiext.ini 文件解读
[PHP53]
ExePath=D:\SOFT_PHP_PACKAGE\php5.3\php-cgi.exe
InstanceMaxRequests = 10000
ActivityTimeout = 300
RequestTimeout = 600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:200,PHPRC:D:\SOFT_PHP_PACKAGE\php5.3\,MonitorChangesTo=D:\SOFT_PHP_PACKAGE\php5.3\php.ini
[PHP54]
ExePath=D:\SOFT_PHP_PACKAGE\php5.4\php-cgi.exe
InstanceMaxRequests = 10000
ActivityTimeout = 300
RequestTimeout = 600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:200,PHPRC:D:\SOFT_PHP_PACKAGE\php5.4\,MonitorChangesTo=D:\SOFT_PHP_PACKAGE\php5.4\php.ini
[Types]
PHP = PHP53 #使用CGI默认使用php5.3
PHP:10236=PHP54 #指定具体站点使用php5.4,10236 站点ID