Apache HTTP server on Windows

September 7th, 2005 | Filed under Essential Tools, Apache web server

I published a detailed tutorial on how to set up Apache web server on a Windows PC at Lifehacker today. It’s pretty basic httpd.conf editing and .htaccess/.htpasswd authentication setup stuff. I’ve been running Apache at home for years now, using it for dev sites and to share music and other files.

What was interesting is that when I started writing the piece I saved all my config files and uninstalled Apache, so I could go through all the steps of installation again and get screengrabs for the writeup. And when I tried, the installation would fail, telling me another service was running on port 80. I thought was going nuts - Apache had been removed, and IIS wasn’t running, my firewalls were all off… then I found a board post that explained how to troubleshoot:

A common during-installation error with Apache reads, “Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down. Unable to open logs.” This means that some other server program (like Skype) is interfering with Apache. To figure out what program it is, open a command prompt and type:

netstat -a -o

Find the PID (Process ID) of the program running on your local machine on port 80 (or http.) Then open the Windows Task Manager (Cntl-Alt-Del). In the View menu, choose Select Columns, and check off PID. Then match the PID to the running process to find out what server program is running, and stop the program. Then retry the Apache installation.

Anyway, it was Skype that was running an http server on port 80, blocking my Apache (re)install. Skype! WTF?

How to set up a personal home web server [Lifehacker]