run syntax check for config files
#httpd -t
log startup errors to file
#httpd -E /tmp/herror
#cat /tmp/herror
run syntax check for config files
#httpd -t
log startup errors to file
#httpd -E /tmp/herror
#cat /tmp/herror
[root@server~]# httpd -t
Syntax OK
[root@server~]# httpd -E /tmp/herror
[root@server~]# cat /tmp/herror
[root@server ~]#
ได้ประมาณนี้ครับ
ได้ลอง reboot ดูบ้างหรือยังครับ
ถ้า fs มีปัญหามันจะได้ fsck ถ้าหนักหน่อยก็ค้างให้ fsck เองเลย ถ้า boot ผ่านค่อยไล่แก้ปัญหาต่อ
ลอง tail -n 100[COLOR=#333333] /var/log/httpd/error_log มาดูหน่อยครับ[/COLOR]
ได้ประมาณนี้ครับ
[Sun Apr 29 04:05:40 2012] [notice] Digest: generating secret for digest authentication …
[Sun Apr 29 04:05:40 2012] [notice] Digest: done
[Mon Apr 30 08:47:27 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 08:47:29 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 09:07:10 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 09:14:17 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 09:15:57 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 09:51:01 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 09:53:39 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:41 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:42 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:43 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:44 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:46 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:48 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:49 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:50 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:51 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:51 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:35:53 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:36:42 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:36:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:36:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 10:36:46 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 11:49:29 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 30 14:06:05 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 01 14:44:52 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 01 14:45:42 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 01 14:46:16 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:26:48 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:26:50 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:27:14 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:15 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:25 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:27 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:28 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:29 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:30 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:31 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:32 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 02 11:33:33 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 03 09:04:36 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 03 09:05:23 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
killall httpd
yum update httpd
service httpd restart
ลองดูครับ
ps -ef | grep httpd
root 18415 18386 0 08:53 pts/0 00:00:00 grep httpd
httpd มันไม่รัน killall httpd ไปมันจะมีผลหรือเปล่าครับ
มันยังฟ้อง เหมือนเดิมหรือเปล่าครับ
ตั้งแต่ตั้งคำถามผมยังไม่ได้ restart เครื่องนะครับ เพราะเกรงว่าจะเกิดปัญหาอื่นตามมา
วันนี้
tail -n 100 /var/log/httpd/error_log ไม่แสดง log ออกมา
พอ
service httpd restart
จะมี ประมาณนี้ออกมาครับ
[Tue May 08 10:21:39 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 08 10:21:41 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)