So I was getting the following error on one of my servers.
Starting httpd: (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!
The fix is as follows. Run the following command
netstat -lnp | grep '0.0.0.0:80'
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 30982/crond
In my case the output showed that crond was using the port. I ran the following to learn more
PID TTY STAT TIME COMMAND
30982 ? S 0:34 crond
I tried the following a couple of times
service crond stop
service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
service crond start
Starting crond: [ OK ]
Everything started working. Hopefully it will work for you too (I'm not responsible if something breaks on your server).
computer web+server linux