Title: (98)Address already in use: make_sock: could not bind to address 80
Description: 98address already in use make sock could not bind to address 80 Linux Hosting
Tags: 98address, already, in, use, make, sock, could, not, bind, to, address, 80
Info: This Post Has Been Viewed 37611 Times SinceSun Feb 25, 2007 2:09 pm Author linuxuser With 40 Replies #1091
(98)Address already in use: make_sock: could not bind to address 80
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
#1
Sydney:
3 seconds ago
#175174
Sydney Tue Jan 31, 2012 3:54 am
Thanks man really helped out a lot
#2
Yan:
2 weeks ago
#174073
Yan Mon Jan 16, 2012 5:46 am
$ 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
#3
kampreto:
8 months ago
#156579
kampreto Sun May 08, 2011 6:03 pm
thanks, it's work for me
#4
Lucas:
9 months ago
#155216
Lucas Sat Apr 09, 2011 8:19 am
pmg thanks!
#5
harry:
10 months ago
#154069
harry Sun Mar 13, 2011 4:56 am
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
#6
pmg:
11 months ago
#152578
pmg Wed Feb 16, 2011 5:54 am
$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/apache2 start
#7
wtsang:
11 months ago
#151817
wtsang Tue Feb 01, 2011 7:29 pm
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.
#8
Buti:
1 year ago
#150761
Buti Thu Jan 13, 2011 2:32 am
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.
#9
willians:
1 year ago
#149240
willians Sun Dec 12, 2010 7:35 am
thanks Shuvo.
my apache it works now.
#10
amol:
1 year ago
#148995
amol Tue Dec 07, 2010 9:19 pm
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]
#11
Sod:
1 year ago
#146276
Sod Wed Oct 20, 2010 11:32 pm
$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd -k start
It helped me in my Debian server. Thanks Shuvo.. :)
#12
abcded:
1 year ago
#145736
abcded Sat Oct 02, 2010 1:09 am
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...
#13
msi:
1 year ago
#140910
msi Tue Aug 03, 2010 6:27 am
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
#14
rob:
1 year ago
#136157
rob Thu Jun 17, 2010 12:51 am
Changing the port number in your httpd.conf file works a charm.
#15
mathan:
1 year ago
#132616
mathan Wed Apr 28, 2010 11:54 pm
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
#16
rachman:
1 year ago
#127340
rachman Wed Feb 03, 2010 7:39 pm
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
#17
Shuvo:
2 years ago
#122930
Shuvo Thu Dec 10, 2009 4:18 am
try this:
$ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd -k start
#18
cjl:
2 years ago
#122827
cjl Wed Dec 09, 2009 2:14 am
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!
#19
ZeroCool:
2 years ago
#114480
ZeroCool Tue Sep 01, 2009 10:38 pm
please stop iis server from windows service
(administrator tool -> services - > world wide web)
and start apache
#20
shameer:
2 years ago
#111373
shameer Sun Aug 02, 2009 1:23 am
please just run the command
fuser -k -n tcp 80