When I am dealing with Apache issues I execute "apachectl status".
Here is an example of the output:
ash-3.00# ./apachectl status
Apache Server Status for localhost
Server Version: Apache/2
Server Built: Feb 14 2008 00:53:14
_________________________________________________________________
Current Time: Wednesday, 11-Mar-2009 11:19:24 EDT
Restart Time: Wednesday, 11-Mar-2009 00:14:05 EDT
Parent Server Generation: 0
Server uptime: 11 hours 5 minutes 18 seconds
Total accesses: 722 - Total Traffic: 8.1 MB
CPU Usage: u2.68 s1.13 cu.91 cs0 - .0118% CPU load
.0181 requests/sec - 211 B/second - 11.4 kB/request
1 requests currently being processed, 14 idle workers
W_________._____................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
So you can see what is going if it restarted on its own in addition to what it
is currently processing. (apachectl is usually in /usr/sbin). In addition to
syslog if Apache is just faulting I would check "error_log" (usually located in
"/var/log/httpd").
Hope this helps.
--
Anthony Wlodarski
www.thrillist.com <http://www.thrillist.com>
Web Applications Developer
568 Broadway Ste. 605
New York, NY, 10012
(o) 646.786.1944
________________________________
From: John Campbell <[email protected]>
Reply-To: NYPHP Talk <[email protected]>
Date: Wed, 11 Mar 2009 07:28:28 -0700
To: <[email protected]>
Subject: [nyphp-talk] Apache is killing me.
I am having an intermittent issue where Apache just craps out. It
seems to happen in the middle of the night for no reason. It crapped
out twice in December, and again last night. I have no idea what the
issue is. There is nothing in the error log. Restarting apache fixes
the problem.
Does anyone have any ideas or suggestions?
Regards,
John Campbell
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php