我在哪里可以找到 CentOS 上的 apache error_log

val*_*ter 19 apache-2.2

我想知道在哪里可以找到 apache 的错误日志。根据我读过的一个网站,它应该在 /var/log/httpd/error_log 但我在 /var/log 上没有 httpd 目录

tim*_*tim 12

检查您的 httpd.conf

LogFile 变量告诉您​​ apache 在哪里写入日志。这个值通常(总是?)相对于 ServerRoot 变量。


And*_*ter 11

它可能在 /var/log/httpd 中。

locate安装了吗?你updatedb最近跑步了cron吗?如果是这样,你可以这样做locate error_log