(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
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.
# 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
My issue got resolved
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..
#killall -9 httpd
#service httpd start
Check httpd if now running
#ps -ef | grep -i httpd
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.
anyone has this before?
(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?
how dificult is it to fix?
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
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
make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down. unable to open logs
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
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
Powered by: Webune Forums V3