Linux
ubuntu 12.04 中缺少 Apache2 日誌
我用 apache2 配置的 Ec2 實例執行良好,突然網路伺服器停止服務頁面。我檢查了所有日誌,但沒有幫助,或者我可能在這裡遺漏了一些東西。以下是apache2的錯誤日誌
[Mon Jan 12 18:15:49 2015] [error] [client 76.164.202.114] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11 [Mon Jan 12 18:15:49 2015] [error] [client 76.164.202.114] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18 [Mon Jan 12 18:16:29 2015] [error] [client 114.124.39.172] PHP Notice: Undefined variable: link in /data/html/article_emailconfig.php on line 37 [Mon Jan 12 18:16:29 2015] [error] [client 114.124.39.172] PHP Notice: Undefined variable: link in /data/html/article_emailconfig.php on line 37 [Mon Jan 12 18:16:46 2015] [error] [client 5.44.217.87] File does not exist: /data/html/old [Mon Jan 12 18:16:56 2015] [error] [client 114.124.39.172] PHP Notice: Undefined variable: link in /data/html/article_emailconfig.php on line 37 [Mon Jan 12 18:16:56 2015] [error] [client 114.124.39.172] PHP Notice: Undefined index: urlid in /data/html/friend.php on line 67 [Mon Jan 12 18:16:56 2015] [error] [client 114.124.39.172] PHP Notice: Undefined variable: link in /data/html/article_emailconfig.php on line 37 [Mon Jan 12 18:17:27 2015] [error] [client 188.165.15.117] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11 [Mon Jan 12 18:17:27 2015] [error] [client 188.165.15.117] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18 [Mon Jan 12 18:17:36 2015] [error] [client 120.40.144.203] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11 [Mon Jan 12 18:17:36 2015] [error] [client 120.40.144.203] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18 [Mon Jan 12 18:17:39 2015] [error] [client 12.218.42.6] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11, referer: http://search.pch.com/frontpagesearch?q=shovavim [Mon Jan 12 18:17:39 2015] [error] [client 12.218.42.6] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18, referer: http://search.pch.com/frontpagesearch?q=shovavim [Mon Jan 12 18:17:45 2015] [error] [client 66.249.67.27] script '/data/html/go.php' not found or unable to stat [Mon Jan 12 18:17:57 2015] [error] [client 46.165.222.7] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11 [Mon Jan 12 18:17:57 2015] [error] [client 46.165.222.7] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18 [Mon Jan 12 18:18:31 2015] [error] [client 66.249.67.35] script '/data/html/go.php' not found or unable to stat [Mon Jan 12 18:18:36 2015] [error] [client 171.113.243.6] PHP Notice: Undefined index: categoryname in /data/html/judaism.php on line 11 [Mon Jan 12 18:18:36 2015] [error] [client 171.113.243.6] PHP Notice: Undefined index: title in /data/html/judaism.php on line 18 [Mon Jan 12 19:05:14 2015] [notice] caught SIGTERM, shutting down [Mon Jan 12 19:05:33 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.14 with Suhosin-Patch configured -- resuming normal operations [Mon Jan 12 19:05:33 2015] [error] [client 87.253.132.202] script '/data/html/virtualjerusalem_rss.php' not found or unable to stat [Mon Jan 12 19:05:33 2015] [error] [client 87.253.132.202] script '/data/html/virtualjerusalem_rss.php' not found or unable to stat [Mon Jan 12 19:05:51 2015] [error] [client 66.249.67.27] script '/data/html/food/MOVED/Soup_minestrone.php' not found or unable to stat [Mon Jan 12 19:06:09 2015] [error] [client 87.253.132.203] script '/data/html/virtualjerusalem_rss.php' not found or unable to stat [Mon Jan 12 19:06:10 2015] [error] [client 87.253.132.203] script '/data/html/virtualjerusalem_rss.php' not found or unable to stat [Mon Jan 12 19:06:10 2015] [error] [client 66.249.67.133] script '/data/html/virtualjerusalem_rss.php' not found or unable to stat
我失去了將近 45-47 分鐘的日誌。有人可以幫我弄這個嗎?
似乎您的伺服器在這 45 分鐘內停機。嘗試重新啟動伺服器:
/etc/init.d/apache2 restart
如果問題仍然存在,請嘗試完全重啟。
如果問題消失了,apache 可能已經崩潰 - apache 2.2 中有一個錯誤(非常古老,多年前已解決https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398223)
如果問題仍然存在,您是否有崩潰前的系統映像?如果是這樣,配置文件的比較可能會告訴我們是否對您的伺服器進行了調整。如果那裡有 SSH 伺服器,請檢查
/var/log/auth.log
可能還有其他文件:
/var/log/auth.log.1 /var/log/auth.log.2.tgz etc
找到包含感興趣的時間範圍的那個,並在那裡查看是否有任何可疑之處。