Announcement

Collapse
No announcement yet.

Address already in use: make_sock: could not bind to address [::]:80

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Address already in use: make_sock: could not bind to address [::]:80

    Hey,

    I'm getting the following error while restarting the http service.

    Code:
    [root@server ~]# /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
    Anyone know How to resolve it?

  • #2
    Hello,
    Find the total no of open process for the port 80 with command "lsof -i :80"

    [root@server ~]# lsof -i :80
    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    perl 17958 apache 4u IPv6 9020162 TCP *:http (LISTEN)
    After that, kill all open process ( 17958 ) listed above and restart the http service again.

    [root@server ~]# kill -9 17958
    [root@server ~]# lsof -i :80
    [root@server ~]# apachectl stop
    [root@server ~]# apachectl start
    [root@server ~]# /etc/init.d/httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [ OK ]
    [root@server ~]#

    Comment

    Working...
    X