Can't restart HTTPD

yerath

New member
Joined
Apr 18, 2014
Messages
1
Good morning!

This morning i got a email from a college. He said that he can't restart httpd trough directadmin. Directadmin only gives : "An error has occurred".

I tried to search the logs and i found this in the errortaskq.log

2014:04:18-00:10:01: Unable to find the pid file: /var/run/httpd.pid

2014:04:18-00:11:42: Error restarting service httpd : uid 0 gid 0 : /etc/init.d/httpd restart >>/dev/null 2>>/dev/null

When i try to run

sudo /etc/init.d/httpd restart

I get

Remaining processes: 2230 19413 19584 20328 23504 23505 23553 23636 24036 24063 24064 Stopping httpd:

Remaining processes: 2230 19413 19584 20328 23504 23505 23553 23636 24036 24063 24064 Stopping httpd:

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs

What is going wrong here?
 
If the address is already in use then its already running.

Code:
ps xuawww | grep -i httpd | grep -v grep | awk '{print $1 }' | xargs kill -TERM
/sbin/service httpd restart
 
Back
Top