【问题标题】:500 errors do not appear in the apache2 error.log on Debian9Debian9 上的 apache2 error.log 中没有出现 500 错误
【发布时间】:2020-05-26 09:25:03
【问题描述】:

我遇到了 apache2 error.log 的问题。 500 错误没有出现在那里(/var/log/apache2/error.log),我每次重新启动 apache2 服务时都会收到这些行:

[Tue May 26 10:19:33.931998 2020] [mpm_prefork:notice] [pid 30119] AH00171: Graceful restart requested, doing restart
[Tue May 26 10:19:33.947081 2020] [so:warn] [pid 30119] AH01574: module ssl_module is already loaded, skipping
[Tue May 26 10:19:33.968226 2020] [mpm_prefork:notice] [pid 30119] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2u configured -- resuming normal operations
[Tue May 26 10:19:33.968246 2020] [core:notice] [pid 30119] AH00094: Command line: '/usr/sbin/apache2'

我把error_reporting = E_ALL, display_errors = On, display_startup_errors = On, log_errors = On /etc/php/7.4/apache2/php.ini/etc/php/7.4/cli/php.ini

我什至没有在浏览器上看到错误,我只是在检查器中收到一条消息“500 Internal Servor Error”。

我还应该配置什么以使它们出现在 error.log 中?

【问题讨论】:

    标签: php debian apache2 http-status-code-500 error-log


    【解决方案1】:

    好吧,我错过了一件事情,这是最重要的事情。

    我必须在 apache2.conf 文件 (/etc/apache2/apache2.conf) 中将 LogLevel 从 warn 更改为 debug,现在它可以工作了!

    【讨论】:

      猜你喜欢
      • 2016-08-02
      • 1970-01-01
      • 1970-01-01
      • 2020-07-24
      • 1970-01-01
      • 2017-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多