Apache not getting restarted

ffeingol

Well-Known Member
#1
We're having an issue where Apache is not getting restarted when cPanel restarts the web server. In a nutshell LSWS gets restarted fine but Apache does not.

If I restart Apache from WHM it shows that it uses this command:

Code:
/usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
I looked in lsws/logs/ap_cmd_param.log and there are no log records that correspond to the time that I restarted Apache via WHM. LSWS is set for "override cPanel restart HTTPD script".

This happens:

- When you restart Apache from WHM
- When Apache gets restarted via upcp
- When Apache gets restarted because domain is added/removed or a plan is changed

This is causing quite a bit of heartburn because we still need Apache for SSI.

TIA,

Frank
 

ffeingol

Well-Known Member
#3
I can try that option. I just thought that"override cPanel restart HTTPD script" was the recommendation for cPanel servers.
 

ffeingol

Well-Known Member
#7
OK, I think I have to put a bit of a correction here. You are correct that if both LSWS and Apache are running and your restart via WHM they both get restarted. The problem we're seeing is that "something" is causing Apache to shut down and then when you restart (via WHM) LSWs gets restarted but Apache stays stopped

We'll try to narrow down how Apache is getting stopped but I'm pretty sure at least the following does it (we'll test more):

- upcp
- Domains getting added/deleted/plans changed

Frank
 

ffeingol

Well-Known Member
#8
OK, finally got around to testing this.

WHM 11.23.2
cPanel 11.23.6-R26881
LSWS 3.3.16
Restart set to override cPanel restart HTTPD script
Apache was running.
Apache/2.2.9

I added a domain to the server. The domain was added via our billing system which uses the XML-API to add the domain. From watching the processes I could see that WHM issues this command to restart Apache:

/bin/sh /scripts/restartsrv_httpd

Here are the log records from ap_cmd_param.log

Wed Sep 3 00:37:10 CDT 2008: -v
Wed Sep 3 06:26:49 CDT 2008: -k start -DSSL
Wed Sep 3 06:27:05 CDT 2008: -v
Wed Sep 3 06:27:05 CDT 2008: -v
Wed Sep 3 06:27:05 CDT 2008: -DSSL -t -f /usr/local/apache/conf/httpd.conf
Wed Sep 3 06:27:51 CDT 2008: -k start -DSSL

When that was all completed, LSWS was restarted but Apache was no longer running.

Let me know what other information you need to debug this problem.
 
Top