You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/document/php环境可能遇到的错误处理.txt

40 lines
1.4 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

【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语句拼接中不要有中文