Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Running Windows 7 and just downloaded the 2.2.22 win32 x86 (no SSL) MSI installer and used all the defaults. It installed httpd under an Apache Software Foundation directory inside Program Files. When I go to my Start Menu and go to Start the Apache Server, I get this message:

enter image description here

Not sure what this means or what I need to do! I used the Typical/recommended installation and haven't messed around with any config files, etc.

share|improve this question

3 Answers 3

I know this is quite a delayed reply, but this may help others having the same issue.

I had this same type of error pop up when I was configuring an application to listen on port 443. As a result my Apache had to be configured to listen on port 443.

It could not bind to socket 443 due to it already being bound to by another application. I found that Skype and LogMeIn both bind on 443 and will block Apache from starting and listening on 443.

Shutting down these services and starting Apache made it work. If I were you I would use the netstat command and look at what is bound to port 80. If you have an application taking up a port 80 bind that you do not need, shut down the service for that application.

netstat -b did the trick (to view binds). Make sure you run the command prompt as Administrator.

Another Note: I am surprised it will not bind to 80. Being the common port for http, I thought this port could be bound to by many applications. Regardless, it is worth a try if you are still experiencing the error.

share|improve this answer

You Could Use the xampp Control panel for windows, its consist of all the basic software bundles you need, right from apache, php, ftp and so on

Link : http://www.apachefriends.org/en/xampp.html

After installing the Xampp control panel make sure that you run the application and start all of its servcies

share|improve this answer
    
Can you describe the linked content, and how it relates to the question? This will help ensure that this answer remains useful in the event the link becomes invalid. In addition, please be careful posting links in answers of this nature--they could be seen by the community as spam, correctly or otherwise. See the FAQ for more information. –  DragonLord Oct 11 '12 at 5:31

The error message is clear: Apache is trying to listen on port 80 (the web/HTTP port), but it is already occupied.

What you need to do is to figure out what program is running a webserver on your system and shut it down so that Apache can use it.

You can also configure Apache to use a different port (e.g., 8080, etc.) instead of 80; that way both programs can run, but there are a couple of issues with that:

  • Users would need to specifically set the port of their browser to the custom port to connect to your Apache server
  • If you are not aware of the existing webserver, then either you installed something a while ago and forgot about it (and presumably don't want it anymore), or worse, it is malware and you definitely want to remove it

The easiest way to find out what is listening on port 80 (or any other port for that matter), is to use CurrPorts or TCPView:

  • Download and run the program(s)
  • Sort on the State column
  • Look for the entry on port 80/HTTP
  • Double-click the entry/entries that are listening on the port
  • Look at the (Process) Path field to see what program is running

Of course this presumes it is a legitimate program or simple malware. If it is a rootkit, then it may be hidden and you will need to run some security programs to root it out (no pun intended).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.