Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default Apache Randomly Stops

    Hello,

    I'm having a problem recently where Apache will just randomly stall/stop, the httpd process will just fade out over the next few seconds and it wont start again if run service httpd restart or start. I have to go into WHM and restart apache through there or wait for WHM to do it automatically which takes like 20 minutes.

    I have had this problem for a little while now and I can't figure it out. I did a complete reinstall of the sever and that made no difference. There is nothing in any of the logs when this happens.

    I have tried using alternative web servers such as Nginx + Apache and litespeed, both stop this problem from happening, but they cause a few other issues (Mostly with uploading large files.).

    Does anyone ever seen this happen before, or know of a fix?

    Thanks

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default Re: Apache Randomly Stops

    Anyone have anything on this? It happened again last night.

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Apache Randomly Stops

    Can you check for the following in /usr/local/apache/logs/error_log location?

    Code:
    grep -i maxclient /usr/local/apache/logs/error_log
    Additionally, rather than restart the service, see if it is still running with a ps aux on the processes. If it is, then perform the following netstats to see if it might be a denial of service attack:

    Code:
    netstat -an | grep :80 | wc -l
    netstat -an | grep :80 | grep -i syn
    The first command counts the number of port 80 connections on the machine for httpd; the second command will list the number of SYN_RECV connections on port 80. A SYN_RECV state is a synflood connection normally, which is used to try to prevent Apache from being accessible (it will hang but be running) by attackers.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Dns stops working randomly.
    By acidstudioz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-17-2009, 11:19 AM
  2. Apache randomly failed, won't start back up...
    By n8_115 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-08-2009, 01:46 AM
  3. Apache creashing randomly, getting annoying
    By DragonFlu in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-19-2006, 09:43 AM
  4. Named stops randomly - domains down
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-02-2005, 04:07 AM
  5. apache fails randomly over time
    By totalufo in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-29-2002, 11:32 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube