(98)Address already in use: make_sock: could not bind to address 80

RegisterLogin
(98)Address already in use: make_sock: could not bind to address 80
Post Description: (98)Address already in use: make_sock: could not bind to address 80
Tags: (98)Address, already, in, use:, make_sock:, could, not, bind, to, address, 80
This Post Was Posted On Dec 13, 2011 By linuxuser #828

Hi there. was wondering if you could help me with this error i am getting. i have a server which i installed apache web server. usually when i restart or reboot the server the htppd service does not automatically come on or start at boot up. so i have to manually get it started. after some troubleshooting, i found out that its not automatically coming on because there is an error during boot up for the httpd service. so finally i figured out how to manualy start the httpd service by using the /etc/init.d/httpd restart command. so i logged in to my server using my SSH account that you gave me. so this is when i noticed the error saying:

Starting httpd: (98)Address already in use: make_sock: could not bind to address

can anyone tell me what this error means?

# /etc/init.d/httpd restart

Stopping httpd: 			[ OK ]

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

but when i did it again, i was able to get my httpd apache server to restar, but i was just wondering what this mean?

thanks

Leave Your Comments
Inds
#9709 1
SOLVED:
LISTEN port 80/443/XXX should be close/open in below file
/etc/httpd/conf.d/ss - IF Listen port active and listing on 80/443, must be close in other file
/etc/httpd/conf/http - Must be (#) close.

May 08, 2012 Reply Report abuse
happy2crazzy
#5431 2
this will truly fix your problem, just run these 4 commands

# for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done
# for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
# for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
# service httpd restart

Sep 05, 2011 Reply Report abuse
bedson
#9403
thanks happy2crazzy finally I could run with the same problem on centos
Jan 26, 2012 Report abuse
Kopelia
#9451
Thanks happy2crazzy, thanks, thanks
Feb 09, 2012 Report abuse
kushal
#9585
Thank you very much

My issue got resolved
Mar 20, 2012 Report abuse
Bob
#9482 3
Yes, comment out line with

Listen 80

--------

I am also seeing

PID file /var/run/httpd/httpd.pid not readable (yet?)

in the log/messages file, but httpd seems to be working fine - could get default home page from a separate nearby system.

Curious that these errors occur..

Feb 16, 2012 Reply Report abuse
Nobody
#9467 4
I also had this problem once and this solved it:

#killall -9 httpd
#service httpd start
Check httpd if now running
#ps -ef | grep -i httpd
Feb 14, 2012 Reply Report abuse
nobody
#1076 5
please try this command

netstat -lnp | grep 0.0.0.0:80

if any of the process are running, kill it using the commmand,

kill -9 pid.

that should fix.
Aug 23, 2009 Reply Report abuse
ram
#9267
Thanks brother it is worked for me.
Dec 12, 2011 Report abuse
palizon
#2939 6
yeah but how do you make the address already in use could not bind to address kill
Dec 01, 2009 Reply Report abuse
gilden
#2652 7
danze: **ERROR** INIT WEB: binding problem - Address already in use(98)
Oct 26, 2009 Reply Report abuse
samtram
#2512 8
im having problems fixing bind address already in use

anyone has this before?
Oct 07, 2009 Reply Report abuse
hin
#1075 9
i am from china and this is what i am getting:

(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

was does this mean?
Jul 23, 2009 Reply Report abuse
hanse
#1074 10
why is that that noone can resolve this problem: could not bind to address problem start apache server

how dificult is it to fix?
Jul 22, 2009 Reply Report abuse
thanks
#1073 11
send me assistance:
stopping httpd:
[failed] 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

i have been trying to figure out this problem i am having, thank so much, at least i was able to get an idea of what i need to do, i will give up update once i figure out and fix this problem.

i have an idea now what i can do
Jul 19, 2009 Reply Report abuse
yahkki
#1072 12
mine says:

httpd failed. the error was: stopping httpd: [failed] 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 n
Jul 15, 2009 Reply Report abuse
sockit
#1071 13
thank you, my error was:

make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down. unable to open logs

Jul 12, 2009 Reply Report abuse
aa_gen
#1070 14
hello :)
in /etc/httpd/ do :
find . | xargs grep "0.0.0.0:80"

you will find some files
( for me : this command return in exemple)
./conf.d/system-config- value from 0.0.0.0:80 to *:80

i have made the change for two files
/etc/httpd/httpd.conf
/etc/h
Mar 02, 2008 Reply Report abuse
aa_gen
#1069 15
hello :)
in /etc/httpd/ do :
find . | xargs grep "0.0.0.0:80"

you will find some files
( for me : this command return in exemple)
./conf.d/system-config- value from 0.0.0.0:80 to *:80

in every file found
Mar 02, 2008 Reply Report abuse
View More Comments
Leave Your Comments...
©2012 Webune Forums - Wed May 09, 2012 3:22 am
Powered by: Webune Forums V3