dreglad

Registered
Jul 14, 2004
1
0
151
Im am running latest cPanel/WHM on my CentOS 4.4 server

When I try to restart httpd from WHM, I get this error:

Code:
Attempting to restart httpd  	
Waiting for httpd to restart.... . . . . . . . . . . finished.

httpd status

root      3794  0.7  0.9 20708 19400 ?       S    20:43   0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd


httpd has failed, please contact the sysadmin.
I looked at the Apache log and I get this line (I hided my real address)
Code:
[Tue Dec 26 20:43:58 2006] [crit] (98)Address already in use: make_sock: could not bind to address IP.ADD.RE.SS port 80
When I run this command:
Code:
netstat -anp | grep 80
I see that there is NO service bind to port 80

I can make Apache work perfectly starting it with:

Code:
/usr/local/apache/bin/apachectl start
But that way "Apache Status" script of WHM doesn't work, and I think there may be other stuff that doesn't work neither.
I also think that after restarting I'll need to run apachectl manually everytime.

I have several virtual interfaces, one with a second apache (2.0) installation, perhaps it is the problem.

Can anyone help me?
Does anyone know how exactly WHM restarts apache?

Thank you in advance!
 

adept2003

Well-Known Member
Aug 11, 2003
281
0
166
~ "/(extra|special)/data"
Does anyone know how exactly WHM restarts apache?
WHM restarts apache with "/usr/local/apache/bin/apachectl startssl"

The fact that you can start apache without SSL indicates that the problem is with the SSL setup - maybe an incorrect entry in the httpd.conf or a bad certificate.
Check the log entries & try: /usr/local/apache/bin/apachectl configtest
 
Last edited: