Problem starting httpd after restarting. port already in use

Hi,

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

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.

Yes, but my web server didn't work until I did what I have mentioned. The website was inaccessible.

@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.

Then you have another web server starting up that is not configured to serve your files. Multiple setups?

No, just one apache server.

The error seems to be a common one. http://www.directadmin.com/forum/showth … 412&page=1">http://www.directadmin.com/forum/showthread.php?t=33412&page=1

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?

That post is a directadmin related issues forum and may not have anything to do with your problem other than something already has httpd running.

Really hard to give any real input without details from the box.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct