I had been running the inbuilt webserver in Coldfusion 8 for some time now and last night, I decided to change that to use an external webserver. I went ahead and downloaded the latest version of Apache thinking that it must be a really straight forward thing to do. But when I installed it, it wont work. It kept throwing this error on the last step of the installation.

Only one usage of each socket address (protocol / network address/port) is normally pemitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets availbale, shutting down
Unable to openlogs
Note the errors or messages above, and press the <ESC> key to exit.

I tried to install it several times and even tried to install Apache on port 8080 but everytime the same error came up. After spending about an hour to figure this out, it turns out that Skype was to blame. Skype listens to port 80 alternatively for incoming requests. Not sure the reason for that though. You can find out what programs are listening to what port by running the following command in command prompt.

netstat -anb

So I had to shut down Skype and then Apache installation worked like a charm.

Bottomline :-

  • Turn off Skype when you install Apache.
  • There is a setting in Skype Tools -> Options -> Advanced -> Connection
    “Use port 80 and 443 as alternatives for incoming connections” – This is checked by default. You must uncheck this to prevent it from blocking Apache.
  • If Apache is installed as a Windows service, I assume it would start using the port 80 before Skype gets initiated. So not an issue once its installed.