Whenever any action is done in WHM that requires httpd to restart, it doesn't seem to restart. Instead it stays down until the monitor catches it and restarts it.
Where should I start looking for the issue with this?
Whenever any action is done in WHM that requires httpd to restart, it doesn't seem to restart. Instead it stays down until the monitor catches it and restarts it.
Where should I start looking for the issue with this?
Which build of cpanel are you using, I have seen this recently myself.
search is your friend!
cPanel Specialist Certification::Technical
Check if there is any syntax errors in apache conf
# /usr/local/apache/bin/httpd -t
More over, you need to check the apache error log file. Usually it is located in:
/usr/local/apache/logs/
and the error file is called error_log.
Both the conf file is fine, and there is not indications in the error log. It starts fine if I manually issue the command, it just doesn't seem to like it if a cPanel script invokes it. It does however restart fine if I restart it through WHM as well...
I just did some more tests and it looks like when cPanel tries to restart apache then it doesn't do a clean shutdown. Where would be the best place to look where most of these scripts call this shutdown at? Anything I can tried to call manually and tail the error_log?