make_sock: httpd error

If we get following error of while try to restart httpd:httpd not running, trying to start

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

Simply log in as root and fire the command which is given below:

netstat -lpn | grep '0.0.0.0:80'

It will show the result something like:

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 14829/httpd

Then kill the PID and kill all the processes of the service and try to restart it.

root@server [~]# kill -9 14829
root@server [~]# killall -9 httpd

root@server [~]# /etc/init.d/httpd restart

Enjoy:)

    0 comments: