Apache Stuck?

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?
Open up a ticket with knownhost support and ask them......

KH support is top notch--im sure they will be able to help you.
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