【fastcgi报错】 今天采用IIS+FASTCGI方式部署PHP5.2.13,结果始终报这个错误: FastCGI Error The FastCGI Handler was unable to process the request. Error Details: * Unable to place a FastCGI process in a JobObject. Try disabling the Application Pool CPU Limit feature * Error Number: 5 (0×80070005). * Error Description: 拒绝访问。 HTTP Error 500 – Server Error. Internet Information Services (IIS) 经查,原因是IIS的应用程序池启用了CPU监视,FASTCGI模式不支持CPU监视,取消监视即可。 【fastcgi报错-No input file specified】 网站目录权限不足 【脚本超时】 在fcgiext.ini里的关于php的配置信息如下: [Types] php=PHP [PHP] ExePath=c:\PHP\php-cgi.exe InstanceMaxRequests=500 EnvironmentVars=PHP_FCGI_MAX_REQUESTS:1000 ActivityTimeout=1200 里面的数字可以自行调整。上面的提示,即配置文件里的ActivityTimeout=600 这个时间超时设置,600是10分钟,最大可以设置为6000一小时。但不一定就是这个原因引起的。 【SQL执行提示错误】 The connection cannot process this operation because there is a statement with pending results. To make the connection available for other queries, either fetch all results or cancel or free the statement. For more information, see the product documentation about the MultipleActiveResultSets connection option. 原因是在程序把多条sql拼成一条去执行,解决办法,分开一条条去执行sql 【SQL执行错误提示】 No mapping for the Unicode character exists in the target multi-byte code page 不要在控制器或者视图中用中文,字符串中也不行,特别是sql语句拼接中不要有中文