Page 1 of 2 12 LastLast
Results 1 to 20 of 22

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

  1. #1
    Join Date
    Nov 2009
    Posts
    26

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

    Hello,

    Since 2 days have I an big problem.
    Every 2 - 4 hours, apache will stop working.

    When i type: /etc/init.d/httpd restart it says:

    (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

    I have the same problem on another DirectAdmin server, but on that server stops apache in one time in the 2 weeks.

    Have anyone had the same problems? And how to solve it? I've googled, but found not much.

    OS CentOS 5, apache 2.2.

    Thanks in advantage!

    Regards,
    Highway.
    Last edited by Highway; 11-01-2009 at 09:40 AM.

  2. #2
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,473
    Please post the output of:
    Code:
    netstat -lnp | grep :80
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  3. #3
    Join Date
    Nov 2009
    Posts
    26
    Hi Smtalk,

    Thanks for your answer. When apache is stoped again, I post here the output.
    I've done this previously, but I can't remember me any special on port 80.

    Kind Regards,
    Highway

  4. #4
    Join Date
    Mar 2009
    Location
    Norway
    Posts
    8
    I have the same problem and i get this output

    [root@server b]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 15576/ns.pl

    Thanks for all help

    Best regards from Morten Buljo

  5. #5
    Join Date
    Nov 2009
    Posts
    26
    Quote Originally Posted by xantini View Post
    I have the same problem and i get this output

    [root@server b]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 15576/ns.pl

    Thanks for all help

    Best regards from Morten Buljo
    Try killall -9 ns.pl

    Does'nt work that, please run: updatedb and then give the output from:

    locate ns.pl

    ns.pl is'nt present on my server, with locate the server tell's you what ns.pl's path is.

  6. #6
    Join Date
    Mar 2009
    Location
    Norway
    Posts
    8
    I kill all and restart httpd and it working now, but what cause the problem ? so we can fix the problem

  7. #7
    Join Date
    Nov 2009
    Posts
    26
    Quote Originally Posted by xantini View Post
    I kill all and restart httpd and it working now, but what cause the problem ? so we can fix the problem
    I don't know at this time.
    Apache is on my server stoped now.

    [root ~]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 13481/hugobloc.pl

    So on your and my server both an pl script.

    Edit: I do now an updatedb, so I can check where it come from. This take a while, time for coffee.

    Edit 2: It founds nothing!? :s
    Last edited by Highway; 11-01-2009 at 09:20 AM.

  8. #8
    Join Date
    Mar 2009
    Location
    Norway
    Posts
    8
    I try to restart my httpd and get this message

    [root@server p247com]# /sbin/service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [Sun Nov 01 19:43:28 2009] [warn] module php5_module is already loaded, skipping
    (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

    [root@server p247com]# /sbin/service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: [Sun Nov 01 19:43:43 2009] [warn] module php5_module is already loaded, skipping
    (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

    [root@server p247com]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 12839/ixko.pl



    EDIT

    [root@server /]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 12840/ixko.pl
    [root@server /]# kill -9 12840
    [root@server /]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 12841/ixko.pl
    [root@server /]# kill -9 12841
    [root@server /]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 12842/ixko.pl
    [root@server /]# kill -9 12842
    [root@server /]# netstat -lnp | grep :80
    [root@server /]# netstat -lnp | grep :80 <-- and then httpd start automatic
    tcp 0 0 :::80 :::* LISTEN 5861/httpd
    [root@server /]#
    Last edited by xantini; 11-01-2009 at 12:50 PM. Reason: More info

  9. #9
    Join Date
    Jul 2007
    Posts
    60
    Looks like some exploits on DA servers. I had this one lately on a server that we were going to migrate from. Since we had to cancel that server I did not have enough time to inspect.

    When I say exploits on DA servers, I really don't mean DA has some vulnerability
    Last edited by aquila; 11-02-2009 at 04:52 AM. Reason: added info
    Consign IT
    Professional Website desingers, web hosting, linux services @ affordable prices

  10. #10
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    163
    Quote Originally Posted by aquila View Post
    Looks like some exploits on DA servers. I had this one lately on a server that we were going to migrate from. Since we had to cancel that server I did not have enough time to inspect.

    When I say exploits on DA servers, I really don't mean DA has some vulnerability
    Check your FTP log.. i guess the perl scripts were uploaded and deleted in 1 second (= uploaded, started and removed by bots )

  11. #11
    Join Date
    Nov 2009
    Posts
    26
    Quote Originally Posted by DutchTSE View Post
    Check your FTP log.. i guess the perl scripts were uploaded and deleted in 1 second (= uploaded, started and removed by bots )
    Yes, that is true. On one strange reason dit some users had CGI access.

    Today was apache down again.

    netstat -na | grep -i list | grep 80
    tcp 0 0 :::80 :::* LISTEN
    unix 2 [ ACC ] STREAM LISTENING 5180 /var/run/dovecot/dict-server

    Nothing to see :S

  12. #12
    Join Date
    Aug 2008
    Posts
    153
    for i in $(fuser 80/tcp);do kill -n 9 $i;done
    service httpd restart
    Manage And Secure Your Servers
    PM ME

  13. #13
    Join Date
    Apr 2011
    Posts
    3

    Exclamation Seeing the same

    I am seeing the same issue:

    [root@srv01 run]# service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: [Fri Apr 15 15:54:27 2011] [warn] module jk_module is already loaded, skipping
    [Fri Apr 15 15:54:27 2011] [warn] module ssl_module is already loaded, skipping
    (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]
    [root@srv01 run]#

    [root@srv01 run]# netstat -lnp | grep :80
    tcp 0 0 :::80 :::* LISTEN 4658/httpd
    [root@srv01 run]#

    Any ideas!?

  14. #14
    Join Date
    Oct 2004
    Location
    Rome - Italy, EU
    Posts
    5,832
    you have to find those file .pl and stop cgi on that domain, one of your user has been hacked.. prolly some permission wrong.

    Regards
    SeLLeRoNe - Andrea Iannucci
    System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  15. #15
    Join Date
    Apr 2011
    Posts
    3
    sadly .. i do not have control over the box, helping a friend with their server and this is after a plesk upgrade to 10.2 .. so that might be part of the issue

  16. #16
    Join Date
    Apr 2011
    Posts
    3
    turns out it was ioncube loader ..

  17. #17
    nobaloney's Avatar
    nobaloney is offline NoBaloney Internet Svcs - In Memoriam †
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,124
    Quote Originally Posted by xcoaster1 View Post
    sadly .. i do not have control over the box, helping a friend with their server and this is after a plesk upgrade to 10.2 .. so that might be part of the issue
    You're on a DirectAdmin forum. Questions for Plesk should be addressed to a Plesk forum. the two control panels are quite different from each other and may need totally different solutions.

    Jeff
    <directadmin@nobaloney.net> +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  18. #18
    Join Date
    Jul 2011
    Posts
    7

    same error

    I am trying to install memcached now at the part where i need restart apache2 and get this

    server:/# /etc/init.d/apache2 restart
    Restarting web server: apache2(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!
    server:/# netstat -lnp | grep :80
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1336/httpd
    server:/#

  19. #19
    Join Date
    Jul 2011
    Posts
    7
    Quote Originally Posted by autotron View Post
    I am trying to install memcached now at the part where i need restart apache2 and get this

    server:/# /etc/init.d/apache2 restart
    Restarting web server: apache2(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!
    server:/# netstat -lnp | grep :80
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1336/httpd
    server:/#

    sorry for the double post....I killed the httpd processes and apache2 started fine but then httpd got the same error when i tried to start it, seems i can have one or the other not both running at one time

  20. #20
    Join Date
    Jun 2007
    Location
    California
    Posts
    498
    Of course you can't; httpd and apache2 are both names for the apache webserver.

    You've probably got multiple apache servers on your system, both set to start up automatically.

    Jeff
    Serving the DirectAdmin community since 2003
    See Additional posts under user nobaloney

    directadmin@nobaloney.net +1 951 643-5345
    Contract DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    http://www.nobaloney.net
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

Similar Threads

  1. Replies: 4
    Last Post: 06-11-2012, 03:24 AM
  2. could not bind to address 0.0.0.0:443
    By moshem in forum General Technical Discussion & Troubleshooting
    Replies: 23
    Last Post: 05-03-2009, 06:42 PM
  3. Replies: 5
    Last Post: 03-17-2009, 08:00 AM
  4. Replies: 0
    Last Post: 01-01-2009, 03:33 AM
  5. Bind error; "Address already in use"
    By skyraider in forum Installation / System Requirements
    Replies: 3
    Last Post: 07-09-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •