apache won't start after removing an account

Stephen

Active Member
Aug 14, 2001
39
1
308
I just removed a domain and apache failed to start.

I then attempted to restart apache via the WHM but received &httpd has failed, please contact the sysadmin.&

Then I ran /etc/rc.d/init.d/httpd restart

Received the error:

/etc/rc.d/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 4468 of /usr/local/apache/conf/httpd.conf:
Invalid command 'SSLVerifyClient', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/rc.d/init.d/httpd restart: httpd could not be started

I looked into httpd.conf and the SSL configuration looked fine (the ssl setting for that domain has worked) but then I commented that out any way =& then ran /etc/rc.d/init.d/httpd restart =& recieved a similar error for the ssl config for the other domain =& I commented them all =& it said /etc/rc.d/init.d/httpd restart: httpd started but the web pages still doesn't load =& I tried restarting apache via the WHM again =& received the same error httpd has failed, please contact the sysadmin.

I then tried to run buildapache.sea =& still won't start

I then tried to run cpanel-redhat7.2-install.sea =& still won't start

Where can I look to get apache to start? The caused was &I just removed a domain and apache failed to start.& Thank you so much!
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
tail /usr/local/apache/logs/error_log -f

Restart apache. You might see something to the effect that apache was unable to bind to port 443 (already in use). If you want it solved quickly, uncomment the SSL entries in httpd.conf and just reboot. That will force the machine to let go of port 443. If you want to dig around, you need to find out which process has not released the port, but I can tell you from experience that sometimes there simply is no such process even though apache thinks there is, and a reboot is required at that point.

If you see some other error when restarting apache with the SSL entries commented out, post it up.
 

Stephen

Active Member
Aug 14, 2001
39
1
308
SSL entries are being commented out (both before and after a reboot):

tail /usr/local/apache/logs/error_log -f

/etc/rc.d/init.d/httpd restart =& said &httpd started& but the web pages still don't load

If I restart apache via the WHM =& received &httpd has failed, please contact the sysadmin.&

With SSL entries being uncommented, just received

/etc/rc.d/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 4468 of /usr/local/apache/conf/httpd.conf:
Invalid command 'SSLVerifyClient', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/rc.d/init.d/httpd restart: httpd could not be started

I am not sure how to get this fixed!
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
When you have the error_log up and refreshing, you should at least see something in it when you restart apache, since that's where apache writes restart data. Do you see anything in it at all? NameVirtualHost entries running by? You might see something like &resuming normal operations&, followed by another message. Worst case, just reboot the thing and see if apache comes back up on its own.
 

Stephen

Active Member
Aug 14, 2001
39
1
308
Nothing at all when I attempt to restart apache, the last log is

[Fri Mar 8 16:44:12 2002] [error] PHP Warning: Undefined offset: 50982 in /home/USERNAME/publi

where USERNAME is one of the customers username.

I have rebooted twice with the hope apache will start automatically but no, still doesn't.
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
OK, next step: did all your IPs come back bound to the server? Are the nameserver IPs listed when you look at the list of IPs via WHM? Is BIND running if this is a nameserver box?
 

Stephen

Active Member
Aug 14, 2001
39
1
308
I apologize for the delay in my respond! There was an unplanned maintenance from my cable connection service so I was not able to get online until now. Gary fixed it for me while I was off line. Thank you so much, GARY!

And thank you so much Annette!!!