Apache Stuck?

Discussion in 'Linux VPS/Dedicated - cPanel' started by Rosie M, Oct 17, 2006.

  1. Rosie M

    Rosie M New Member

    I was told by KH that none of my sites were loading because "Apache stuck"...when this happens, what can I do since I can't access my whm to restart?
     
  2. ppc

    ppc Moderator

    Open up a ticket with knownhost support and ask them......

    KH support is top notch--im sure they will be able to help you.
     
  3. Caleb

    Caleb McDonald's Drywall Expert

    SSH into your VPS and run the 'service httpd restart' command.

    -Caleb
     
  4. KH-Paul

    KH-Paul CTO Staff Member

    There is number of choices -
    1. As Caleb mentioned - restart Apache from the command line:
    service httpd restart

    2. You don't need to have Apache running to be able to login to WHM, just go directly to WHM port: http://vps-ip-address:2086/ and restart Apache from there;

    3. Reboot the VPS through VZPP;

    4. Enable Apache (httpd) service monitoring at WHM >> Service Configuration >> Service Manager. This was chkservd daemon will periodically connect to your web server and restart it if needed

    5. (the best way) find a reason why it is dying and fix the problem. In most cases that I've seen this was related to either:
    a) bad php code with heavy memory and/or file descriptors leaks;
    b) heavy traffic that takes all available Apache slots (check MaxClients option in Apache configuration but don't set it to too high value);
    c) Apache/PHP was compiled with incompatible options.
    d) Lack of resources - you can check if your VPS is trying to go over its limit by clicking on "QoS Alerts" link in the left frame of your VZPP

    PS I'm moving this to Linux VPS - cPanel forum

    Regards,
    Paul
     
  5. Rosie M

    Rosie M New Member

    Thanks for all the replies. I'm going to try to figure out what's causing it today!
     

Share This Page