Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
When I run service httpd start I get the following error: Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 76.190.186.112:80 no listening sockets available, shutting down ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8

    Error starting Apache


    When I run service httpd start I get the following error:

    Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 76.190.186.112:80
    no listening sockets available, shutting down
    Unable to open logs

    I looked in my conf file and my Listen was
    Listen 80
    so I changed it to Listen *:80, which didn't work, so I tried just putting in my IP address, which did not work either.

    I am behind a Linksys router, but I have all ports open to my computer.

  2. #2
    Just Joined!
    Join Date
    Aug 2009
    Posts
    9
    HI,

    If you have configured apache incorrectly, these type of errors may occur, so please execute, httpd -t and check out the errors.

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8
    When I execute httpd -t, it just returns syntax ok

    I don't know what I'm doing wrong... I've set up apache before and never had this problem...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    That IP you have is your external IP address, it is not the address assigned to your machine by your router, which is why you can't bind to it. You have an internal IP assigned to you by your router, which is the one you need to listen on. Then you need to forward requests on port 80 to your internal machine in your router configuration.

  6. #5
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8
    I changed httpd.conf to Listen *:80 and now I get this when starting:
    (9 Address already in use: make_sock: could not bind to address [::]:80

  7. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    Something is already using that port, are you sure httpd isn't already running? What is output of
    Code:
    ps -A | grep httpd
    netstat -a | grep ":80"

  8. #7
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8
    I entered both... there is no output returned

  9. #8
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8
    Also, when I do httpd status it says it's dead but subsys locked

  10. #9
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    this apache or apache2? In my apache2 conf it has Listen 80, not Listen *:80
    Code:
    NameVirtualHost *:80
    Listen 80

  11. #10
    Just Joined!
    Join Date
    Aug 2009
    Posts
    8
    apache2... I set Listen to 80 and NameVirtualHost *:80 and I still get the same error

Page 1 of 2 1 2 LastLast

Posting Permissions

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