php返回500错误,但没有错误日志 [英] php return 500 error but no error log
问题描述
我有一个问题,当我有一个php应用程序返回内部服务器错误(500),但没有显示在错误日志。
现在我知道我正在尝试运行的错误,我知道我已经丢失了一些文件,但apache错误日志中应该显示的内容不是什么,否则我应该如何准确地知道我错过的内容。 >
我创建了一个测试脚本是在相同的vhost配置下的错误,这些错误显示为好,所以似乎配置正确到php / apache。是否有错误日志中显示某些php错误(php配置为显示任何类型的通知,警告,错误,致命错误等)?
扫描时,这是在ubunut 10.04上运行的标准apache和ubuntu repo的php。您的源文件找到 @
。
目前@错误控制运算符前缀将甚至禁用
错误报告关键错误,将终止脚本
执行。除此之外,这意味着如果您使用@
抑制特定功能的错误,并且它不可用
或已被错误输入,脚本将在那里死亡,没有
指示为什么。
I am having an issue when I have a php application that is returning an internal server error (500) however nothing is showing up in the error log.
Now I know there are error with what I am trying to run, I know I have missing some files and what not but something should show in the apache error log (otherwise how are I supposed to know exactly what I am missing).
I created a test script is errors it in under the same vhost configuration and those error show up fine so everything seems configured right as far as php/apache. Are there certain php errors that does show up in the error log (php is configure to display any type of notice, warning, , error, fatal error, etc...)?
This is running on ubunut 10.04 with the standard apache and php from the ubuntu repo with apt-get.
Scan your source files to find @
.
Currently the "@" error-control operator prefix will even disable error reporting for critical errors that will terminate script execution. Among other things, this means that if you use "@" to suppress errors from a certain function and either it isn't available or has been mistyped, the script will die right there with no indication as to why.
这篇关于php返回500错误,但没有错误日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!