关于 PHP 错误 Apache 给出 500 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1191755/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
On PHP Error Apache gives 500 Error
提问by trobrock
Everytime I get an error in any of my PHP, my local Apache server gives me a 500 Internal Server error. I never seem to have problems with any of my CakePHP projects, but this is plain vanilla PHP and it is really slowing down progress having to guess at the error.
每次我在任何 PHP 中遇到错误时,我的本地 Apache 服务器都会给我一个 500 Internal Server 错误。我的任何 CakePHP 项目似乎从来没有问题,但这是普通的 PHP 并且它确实减慢了必须猜测错误的进度。
回答by Edward Dale
回答by Itay Moav -Malimovka
What @scompt wrote + you can always check the Apache error logs to know what happened. (hell, if you develop on linux, host on Linux, you mustbe familiar with the error logs).
@scompt 写了什么 + 您可以随时查看 Apache 错误日志以了解发生了什么。(见鬼,如果你在 linux 上开发,在 Linux 上托管,你必须熟悉错误日志)。

