Apache/服务器日志帮助

Apache/服务器日志帮助

我的 apache conf 上有这个

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/web
ServerName web.myweb.com
ErrorLog logs/index-error_log
CustomLog logs/index-access_log common 
</VirtualHost>

现在我出现了 500 个错误,但我找不到任何 index-error-log,并且 /etc/httpd/logs/error_log 没有显示任何内容...

有人能帮我找到日志以便我了解导致 500 错误的原因吗?

谢谢

注意:myweb.com 不是我的真实网站,仅举个例子

这是我的最新日志(没有显示任何错误)

[Mon Sep 26 01:52:37 2011] [notice] Apache configured -- resuming normal operations
[Mon Sep 26 01:53:13 2011] [notice] caught SIGTERM, shutting down
[Mon Sep 26 01:53:13 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Sep 26 01:53:13 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Sep 26 01:53:13 2011] [notice] Digest: done
PHP Warning:  Module 'apc' already loaded in Unknown on line 0
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
[Mon Sep 26 01:53:13 2011] [notice] Apache configured -- resuming normal operations

答案1

默认情况下,虚拟主机的错误日志在 中创建,/etc/httpd/logs它是 的符号链接/var/log/httpd。作为临时措施,您可以注释ErrorLog虚拟主机中的指令(放在#开头),以使错误记录到主error_log文件中,以查看会发生什么。

相关内容