如何使apache直接显示错误信息,不想翻日志
InternalServerErrorTheserverencounteredaninternalerrorormisconfigurationandwasunablet...
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, zcyhun@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache+fastcgi+php
php.ini里的display_errors是On 展开
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, zcyhun@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache+fastcgi+php
php.ini里的display_errors是On 展开
1个回答
展开全部
有时候并不一定是php的错误,也有可能是apache的错误,还有可能是权限的错误,比如用suphp运行的php时,权限设置错了也会出现这样的500错误。
还是查下apache的错误日志比较好。
还是查下apache的错误日志比较好。
追问
是忘开mysql了...
php语法错误是直接显示出来的,
连接mysql超时的时候就显示这个,
日志里写的大概是fastcgi退出,
可能是fastcgi的超时时间比apache的超时时间短,
这个怎么设置呢?
追答
php.ini里面的max_execution_time加大就行了,并不是fastcgi设置的时间短,而是php运行时间比较短。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询