【问题标题】:Apache LogLevelApache 日志级别
【发布时间】:2016-08-19 21:11:05
【问题描述】:

我正在检查我们的 error.log,它已满...不需要很多(调试/警告):

服务器 1:

[Tue Apr 26 03:28:14.641442 2016] [authz_core:debug] [pid 12490] mod_authz_core.c(802): [client xx.xx.xx.xx:54849] AH01626: authorization result of <RequireAny>: granted
[Tue Apr 26 03:28:14.641496 2016] [authz_core:debug] [pid 12490] mod_authz_core.c(802): [client xx.xx.xx.xx:54849] AH01626: authorization result of Require all granted: granted
[Tue Apr 26 03:28:14.641506 2016] [authz_core:debug] [pid 12490] mod_authz_core.c(802): [client xx.xx.xx.xx:54849] AH01626: authorization result of <RequireAny>: granted
[Tue Apr 26 03:28:14.710134 2016] [headers:debug] [pid 12490] mod_headers.c(845): AH01502: headers: ap_headers_output_filter()

服务器 2:

PHP Warning:  Module 'newrelic' already loaded in Unknown on line 0
[Mon Apr 25 06:31:35.756293 2016] [mpm_prefork:notice] [pid 1993] AH00163: Apach              e/2.4.7 (Ubuntu) configured -- resuming normal operations
[Mon Apr 25 06:31:35.756309 2016] [core:notice] [pid 1993] AH00094: Command line              : '/usr/sbin/apache2'
[Tue Apr 26 03:22:14.689539 2016] [mpm_prefork:notice] [pid 1993] AH00169: caugh              t SIGTERM, shutting down
PHP Warning:  Module 'newrelic' already loaded in Unknown on line 0
[Tue Apr 26 03:22:15.796372 2016] [mpm_prefork:notice] [pid 3709] AH00163: Apach              e/2.4.7 (Ubuntu) configured -- resuming normal operations
[Tue Apr 26 03:22:15.796472 2016] [core:notice] [pid 3709] AH00094: Command line              : '/usr/sbin/apache2'

我修改了 apache2.conf 为:

 LogLevel  error

它适用于 Server2 但不适用于 Server1

重新启动 apache2 服务,我仍然看到它们在 error.log 文件中生成。

【问题讨论】:

    标签: apache2 error-logging error-log


    【解决方案1】:

    好的,这是由于站点中的另一个配置可用所以双重配置。

    它在 Server2 上工作,因为他们在 sites-available 中没有该配置。

    【讨论】:

    • 配置中有什么问题?
    猜你喜欢
    • 2011-06-27
    • 2015-06-04
    • 2015-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-21
    相关资源
    最近更新 更多