php 500 内部服务器错误 - 日志位置?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26187710/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 18:13:11  来源:igfitidea点击:

500 Internal Server Error - Log Location?

phpapacheinternal-server-error

提问by Username

I'm running a Linux server with cPanel installed.

我正在运行安装了 cPanel 的 Linux 服务器。

I keep getting a 500 error when visiting a certain page, but I'm trying to find the logs that can provide me with more information.

我在访问某个页面时不断收到 500 错误,但我正在尝试查找可以为我提供更多信息的日志。

Here's one place I've found some logs for it:

这是我为它找到了一些日志的一个地方:

/usr/local/apache/domlogs/mydomain.com

But all that has is generic information stating that a 500 error occurred, but not necessarily what caused it. Where should I be looking for that information?

但所拥有的只是一般信息,说明发生了 500 错误,但不一定是导致错误的原因。我应该去哪里寻找这些信息?

回答by David Dieguez Neto

Running Apache2 in a CentOS, you can check the logs with the following command:

在 CentOS 中运行 Apache2,您可以使用以下命令查看日志:

tail /usr/local/apache/logs/error_log