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

Mobile
feeds
Welcome Login | Register

(98)Address already in use: make_sock: could not bind to address 80
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Linux Hosting Forums
        » » (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
Post Description: 98address already in use make sock could not bind to address 80 Linux Hosting
Post Tags:
This Post Has Been Viewed 12588 Times Since Sun Feb 25, 2007 2:09 pm Author linuxuser with 25 replies
(98)Address already in use: make_sock: could not bind to address 80
Advertise On This Page




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


Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : (98)Address already in use: make_sock: could not bind to address 80

Comments and replies About (98)Address already in use: make_sock: could not bind to address 80
:: 1 :: Reply #1850 Reply By tartl On Thu Apr 26, 2007 11:36 am
tartl:
if for some reason you are still having problems, you can edit your httpd.conf file and look for where it says:

Listen :443

comment out this line and restart your web server and it should work. i would also try rebooting your machine if it continues. by rebooting, you will reload all your applications.
:: 2 :: Reply #22775 Reply By Ravikumar On Wed Oct 03, 2007 10:29 pm
Ravikumar:
# /etc/init.d/httpd restart
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
no listening sockets available, shutting down
unable to open logs
[failed]
:: 3 :: Reply #34276 Reply By Goitom On Thu Jan 03, 2008 12:06 am
Goitom:
there could be several reasons for this to happen, however the case that happened to me was that i had setup an ip address that was provided by an isp (leased based) for apache to listen for requests and that ip was expired.
:: 4 :: Reply #35554 Reply By gangadhar On Wed Jan 09, 2008 5:35 am
gangadhar:
# /etc/init.d/httpd restart
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
no listening sockets available, shutting down
unable to open logs
[failed] what will i do my http server is no runnig plz send reply
:: 5 :: Reply #36201 Reply By paddy On Sat Jan 12, 2008 11:21 pm
paddy:
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
:: 6 :: Reply #38653 Reply By EliasHickman On Mon Jan 28, 2008 4:38 pm
EliasHickman:
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.
:: 7 :: Reply #43918 Reply By aa_gen On Sun Mar 02, 2008 11:15 am
aa_gen:
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
:: 8 :: Reply #43920 Reply By aa_gen On Sun Mar 02, 2008 11:19 am
aa_gen:
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
:: 9 :: Reply #50739 Reply By Ken On Sat Apr 19, 2008 6:42 am
Ken:
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.
:: 10 :: Reply #77944 Reply By http://www.flowersall.net/ On Tue Oct 28, 2008 8:16 am
http://www.flowersall.net/:
try turn orr virtual host 0.0.0.0:80
:: 11 :: Reply #88933 Reply By phpunit On Mon Jan 05, 2009 1:57 pm
phpunit:
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
:: 12 :: Reply #88958 Reply By sreejith On Mon Jan 05, 2009 5:26 pm
sreejith:
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.
:: 13 :: Reply #89208 Reply By norman On Wed Jan 07, 2009 11:39 pm
norman:
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
:: 14 :: Reply #94185 Reply By schimmer On Mon Feb 16, 2009 10:51 pm
schimmer:
i took 3 hours to solve the issue. for reference: in conf file : servername localhost
listen 80

it is ok for me.
:: 15 :: Reply #95881 Reply By vithya On Tue Mar 03, 2009 11:39 pm
vithya:
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
:: 16 :: Reply #98927 Reply By sreejith On Wed Apr 01, 2009 3:26 am
sreejith:
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
:: 17 :: Reply #98928 Reply By Shane On Wed Apr 01, 2009 3:30 am
Shane:
i could see the correct fix in the following url:-
openhelp.info/index.php?option=com_
:: 18 :: Reply #100039 Reply By Ron On Sat Apr 11, 2009 2:58 pm
Ron:
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.
:: 19 :: Reply #100495 Reply By shanestar007 On Thu Apr 16, 2009 3:30 am
shanestar007:
i found the solution here:-
openhelp.info/index.php?option=com_
:: 20 :: Reply #100496 Reply By shanestar007 On Thu Apr 16, 2009 3:33 am
shanestar007:
i found the solution here:-
openhelp.info/index.php?option=com_
:: 21 :: Reply #111373 Reply By shameer On Sun Aug 02, 2009 1:23 am
shameer:
please just run the command

fuser -k -n tcp 80
:: 22 :: Reply #114480 Reply By ZeroCool On Tue Sep 01, 2009 10:38 pm
ZeroCool:
please stop iis server from windows service
(administrator tool -> services - > world wide web)

and start apache
:: 23 :: Reply #122827 Reply By cjl On Wed Dec 09, 2009 2:14 am
cjl:
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!
:: 24 :: Reply #122930 Reply By Shuvo On Thu Dec 10, 2009 4:18 am
Shuvo:
try this:

$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd -k start
:: 25 :: Reply #127340 Reply By rachman On Wed Feb 03, 2010 7:39 pm
rachman:
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