Thursday, February 3, 2011

My appache server can not get access to port 80.

I installed appache server on my computer, but when I run it, the error log indicate that the application can not get access to the port 80, here is the error message:

  • could not bind to address [::]:80
  • could not bind to address 0.0.0.0:80 no listening sockets available, shutting down

I am not using IIS services, so what the hell is going wrong with this? Help!

  • There could be something already on the port. Are you running Skype? If so it by default will bind and listen on that port.

    There is an advanced connection option in the settings that you can disable this.

    If you are not running skype, try telnetting to the port 80 and see if it responds.

    kubal5003 : Not only skype, many applications that need open ports use 80 that is almost never blocked to do the job. This is especially true when you're behind the NAT and everything else is blocked.
  • You're probably using Windows Vista/Seven. Here you probably need to use netsh to allow binding to ports/addresses. You have to give the account that apache runs on appropriate privileges.

    This is accomplished by using netsh http add urlacl. For more details see:

    http://technet.microsoft.com/en-us/library/cc725882%28WS.10%29.aspx

    Also make sure that any other program is not using this port.

    From kubal5003
  • it would be easier if you just change the binding port so you wont get other programs/services disrupted

    Richard : @baboonWorksFine: PID 4 is System. Which likely means something is using Http.sys (kernel HTTP receiver) which allows multiple processes to listen to HTTP (on different URLs). Use `netsh http show servicestate` (from an elevated cmd/PSH prompt) to see what is listening on http with port 80. (Note there will be various things listening on non-port 80 HTTP depending on system setup.)
    From Aviatrix
  • Finally, it turns out that the SQL server is using my port 80, I shut it down, and everything back to normal, thanks you guys.

0 comments:

Post a Comment