Problem starting httpd after restarting. port already in use
I noticed the below error trying to start the httpd service after rebooting my linode.
service httpd start
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
I resolved this issue by killing the httpd process and re-starting the httpd service.
Why does this happen and how do I ensure this doesn't happen when the server is rebooted next time.
Thanks,
Avinash
5 Replies
@XReaper:
Sounds like you have set up the httpd to start automatically on boot. If that's the case, there is no need to manually start it after a reboot.
The error seems to be a common one.
In my case i found only httpd and no perl file.
netstat -lnp | grep :80
tcp 0 0 :::80 :::* LISTEN 4658/httpd
@Dweeber:
Then you have another web server starting up that is not configured to serve your files. Multiple setups?
Really hard to give any real input without details from the box.