Friday, July 31, 2009

(98)Address already in use: make_sock: could not bind to address [::]:8000 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

If You facing Problem:
(98)Address already in use: make_sock: could not bind to address [::]:8000
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8000
no listening sockets available, shutting down

Fix as follows :

netstat -tulpn| grep :80
tcp 0 0 0.0.0.0:8028 0.0.0.0:* LISTEN 5476/(squid)
tcp 0 0 :::80 :::* LISTEN 5474/squid

It means 80 port running for Squid service. Solution is Stop squid service.

killall -9 squid

and restart Apache/httpd

/etc/init.d/httpd restart

Cool Enjoy... if issue ping to me. ;)

8 comments:

sujit said...

wow... great article.. keep it up..

Shrikant Lokhande said...

Thanks- Sujit

Guys, Please let us know if post is helpful or may need changes in to it.

Anonymous said...

No it was not helpful to me.

netstat -lnp | grep :80
tcp6 0 0 :::80 :::* LISTEN 5197/apache2

so there is nothing other than apache runnig on it but still I had error.

Shrikant Lokhande said...

Actually you can not said that, if you not diagnose that properly.

1. "ps -aufx | grep apache" run this command and kill that particular PID

Or

2. killall -9 httpd or killall -9 apache

Try it once.

narendra said...

Thanks Dude you save my life.
This was the best answer.

Anonymous said...

Same problem I had.
what 9 stands for?
and
how come running a top command my apache process was not there?

great post!

Shrikant Lokhande said...

Hey Guys, Thank you.
Please write comment and do identify by Google account.

mageshm said...

I have tried many time but still through the same error.

Any solution.

The error is;
------------
httpd (pid 29691?) not running
/usr/local/zend/bin/apachectl stop [OK]
(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
/usr/local/zend/bin/apachectl start [FAILED]
---------