The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Randomly Stops

Discussion in 'EasyApache' started by dlewis23, Apr 7, 2011.

  1. dlewis23

    dlewis23 Member

    Joined:
    Jan 11, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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. dlewis23

    dlewis23 Member

    Joined:
    Jan 11, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Anyone have anything on this? It happened again last night.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page