Forums »
  Linux wallpaper Hosting forums topics about gallery sites in linux systems »
    (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 80

Description: (98)Address Already In Use: Make_sock: Could Not Bind To Address 80
Tags: 98address ,already ,in ,use ,make ,sock ,could ,not ,bind ,to ,address ,80
Posted On Sun Feb 25, 2007 By linuxuser In Linux wallpaper Hosting forums topics about gallery sites in linux systems Forums
hi there, was wondering if you could help me with this error i am getting. i was trying to restart my apache server on my linux machine when i got this error i have never seen before, 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
Sydney Tue Jan 31, 2012
Thanks man really helped out a lot
Yan Mon Jan 16, 2012
$ sudo fuser -k -n tcp 80

this worked on centos. Thanks a lot!!!
Apache was down for an hour and ISPs control panel occupated port 80
kampreto Sun May 08, 2011
thanks, it's work for me
Lucas Sat Apr 09, 2011
pmg thanks!
harry Sun Mar 13, 2011
Hey ,

This ,means some process ir running which is using this port so try to kill that process

like get the process

eg : ps -ef | grep httpd

then kill the process

eg kill -9 process ID

this worked for me
pmg Wed Feb 16, 2011
$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/apache2 start
wtsang Tue Feb 01, 2011
Commenting out Listen 80 will work because there is another Listen statement listening to the same port i.e. Listen [server ip addr or name]:80.
Buti Thu Jan 13, 2011
Hello
just had the same error message on Fedora 13 and this is how it was solved.
Change the listen port in the httpd config file to 81, by doing this we want to see which service is using port 80.
as root do the following:
#netstat -tlp
after running the command.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1546/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1429/cupsd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1592/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2360/sendmail: acce
tcp 0 0 0.0.0.0:8554 0.0.0.0:* LISTEN 3207/gnome-dvb-daem
tcp 0 0 0.0.0.0:54858 0.0.0.0:* LISTEN 1369/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1310/rpcbind
tcp 0 0 :::59092 :::* LISTEN 1369/rpc.statd
tcp 0 0 :::22 :::* LISTEN 1546/sshd
tcp 0 0 ::1:631 :::* LISTEN 1429/cupsd
tcp 0 0 :::443 :::* LISTEN 2593/httpd
tcp 0 0 :::6881 :::* LISTEN 2757/ktorrent
tcp 0 0 :::111 :::* LISTEN 1310/rpcbind
tcp 0 0 :::80 :::* LISTEN 2593/httpd
tcp 0 0 :::81 :::* LISTEN 2593/httpd

now we know that port 80 is utilised by another service, so locate and change system-config-httpd.conf: system-config-httpd.conf system-config-httpd.conf. all of this, restart httpd:
/etc/init.d/httpd start

that was not hard...was it now.
willians Sun Dec 12, 2010
thanks Shuvo.
my apache it works now.
amol Tue Dec 07, 2010
following error coming when i start the apache start or restart.

/etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(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
[FAILED]
Sod Wed Oct 20, 2010
$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd -k start


It helped me in my Debian server. Thanks Shuvo.. :)
abcded Sat Oct 02, 2010
Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:8080


what to do guys i am getting that error while starting apache...
msi Tue Aug 03, 2010
if u have a nic configured with the ip that httpd will listen to it should work fine , if u r using floating ip , virtual ip that will be created as a cluster resource change the ip address i.e if u have have two nics, nic1 192.168... and nic2 10.0... it will work for 10.0.. and will not for 192.168 .. why I dont know ;) if u know tell me
rob Thu Jun 17, 2010
Changing the port number in your httpd.conf file works a charm.
mathan Wed Apr 28, 2010
hi
when i tried to ssl in apachectl config and finished all steps in ssl but is following error coming when i start the apachectl start or restart.
# /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
rachman Wed Feb 03, 2010
it seems like another web server daemon already running,,, if u use xampp, try to stop it first,
/opt/lampp/lampp stop,
then try to starting httpd
#service httpd start
Shuvo Thu Dec 10, 2009
try this:

$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd -k start
Pardeep Thu Aug 02, 2012
Thanks. Your solution is working fine.
cjl Wed Dec 09, 2009
hey,guys!watch me,i also had the same issue and i just changed the port,such as 88. restart apache and it works.even i didnt know what had happened!
ZeroCool Tue Sep 01, 2009
please stop iis server from windows service
(administrator tool -> services - > world wide web)

and start apache
shameer Sun Aug 02, 2009
please just run the command

fuser -k -n tcp 80
shanestar007 Thu Apr 16, 2009
i found the solution here:-
openhelp.info/index.php?option=com_
Ron Sat Apr 11, 2009
ken's suggestion worked for me. i was getting (98) address already in use: make_sock: could not bind to address [::] when ever i ran:
# apachectl start
or
# service httpd start
if i ran:
# apache status
i would get: httpd dead but subsys locked

anyhow i went into htttpd.conf and commented out "listen *:80"
this worked, but i still don't what happened and why this solution worked.
Shane Wed Apr 01, 2009
i could see the correct fix in the following url:-
openhelp.info/index.php?option=com_
sreejith Wed Apr 01, 2009
hi bose issue the following commands to sortout this issue:-
root at del [~]#for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done

root at del [~]#for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done
2) if apache is not restarting after this. remove semaphore using the following script.

root at del [~]#for i in `ipcs -s | grep nobody | awk '{print $2}'`; do ipcrm -s $i; done

3) restart apche.
root at del [~]#/scripts/restartsrv_httpd
vithya Tue Mar 03, 2009
give the solution for this error: (os 10048) only one usage of each socket address (protoclo / network / adress /port) is normally permitted: make_sock: could not bind to address 0.0.0.0.80 no listening sockets available, sutting down unable to open logs in apache 2.0
schimmer Mon Feb 16, 2009
i took 3 hours to solve the issue. for reference: in conf file : servername localhost
listen 80

it is ok for me.
norman Wed Jan 07, 2009
this is my error:


starting web server: apache2(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
sreejith Mon Jan 05, 2009
1)kill all nobody process. use the following script for doing that.

for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done

2) if apache is not restarting after this. remove semaphore using the following script.

for i in `ipcs -s | grep nobody | awk '{print $2}'`; do ipcrm -s $i; done

3) restart apche.
phpunit Mon Jan 05, 2009
i also get this on my windows 2003 server with microsoft sql

address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down
http://www.flowersall.net Tue Oct 28, 2008
try turn orr virtual host 0.0.0.0:80
Ken Sat Apr 19, 2008
i also had the same problem. when i commented out listen 80 in my /etc/httpd/conf/httpd.conf file on my fedora 8 box, it worked like a charm.
aa_gen Sun Mar 02, 2008
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
aa_gen Sun Mar 02, 2008
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
EliasHickman Mon Jan 28, 2008
i also had the same problem. when i commented out listen 80 in my /etc/httpd/conf/httpd.conf file on my fedora 8 box, it worked like a charm.
paddy Sat Jan 12, 2008
i had the same problem. commneting the listen 80 line httpd.conf line and then restarting the httpd service fixed my issue.

i am using port formwarding dynamicdns
Information
Title: (98)Address Already In Use: Make_sock: Could Not Bind To Address 80
Info: This Post Has Been Viewed 0 Times Since
Date: Sun Feb 25, 2007
Author linuxuser Received 40 Replies #422
Related Content
Related Pages
Related Sites
Add Your Website
Share
wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Wed Jun 19, 2013 (-8 GMT)
Powered by: Webune Forums V5