This is a common error when using WAMP. The MySql runs fine but you cannot access localhost and phpmyadmin, when accessed gives you an error 404 not found. The apache server cannot be started and when you test port 80 it keeps giving you the message PORT 80 USED BY MICROSOFT-HTTPAPI/2.0. I have dealt with this problem and wasted ample of time and figured there are different solutions to it. Below mentioned are the ways to troubleshoot this error, hope you guys find it helpful
1. PORT 80 USED BY MICROSOFT-HTTPAPI/2.0
There is a service using port 80 called MsDepSvc described as “Web Deployment Agent Service”. After stopping this service I was able to restart Apache
Go to administrative tools–>services–>web deployment agent service–>click stop to stop it or right click on properties and select disbaled to disable it
(if you cant find administrative tools, right click on start–>click on properties–>under system administrative tools, check on display this in all programs menu–>click ok, now you can find it in all programs)
Make sure no other program conflict Wamp such as Zonealarm, firewall/antivirus, NOD32, Eset, any web related program including Remote Desktop …
IIS and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work
Disable IIS in Vista/W7:
Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services
Disable IIS in XP:
Control Panel, Add/Remove Programs, Add/Remove Windows Components, uncheck Internet Information Services (IIS)
Restart computer, then restart Wamp
Also, in folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else
If using Skype, open Skype > Tools > Options > Advanced > Connection then uncheck “use port 80…” restart Wamp then Skype
and make sure Skype doesn’t use port 80
2. The wampapache service terminated with service-specific error 1 (0×1)
A misconfiguration in your httpd.conf. This is the most common. To resolve it, go to the command line (Start > Run > CMD), and enter “httpd.exe –S” in the apache\bin folder.
Port 80 is already in use. This can happen because you have another application, e.g. IIS running on port 80. Actually there is no reason you shouldn’t be able to use both, just not at the same time. From the Wamp menu you can choose Apache > Test port 80 and it will tell you which service is using it.
To stop IIS you will have to go to Control Panel > Adminstrative Tools > Services and stop the World Wide Web Publishing service.
Your firewall is blocking port 80. All firewalls are different. First, just stop the firewall to test if it’s the cause of the problem. If it is, you need to add 127.0.0.1 to the ‘safe list’.
‘IIS management service’. This can also interfere with apache, so stop it if you don’t need it.
Stop Skype (right click in the task bar, and exit the app). Then start Wampserver and you can restart Skype. Or change the Skype port numbers.
Check the ip addresses in the apache conf\httpd.conf file. There should be a line saying Listen x.x.x.x:80, with your ip address. You can either try to add a line for 127.0.0.1 (local address) or you can put your actual IP address in there. If the DHCP server of your router has issued a new address it may be different from last time, especially if you use wireless a lot. To check your local IP address, go to the command line (Start > Run > CMD) and enter “ipconfig”.
If you have Microsoft Sql Server installed, even though the IIS service is disabled, it keeps a web service named httpapi2.0 running. You should stop the service named ‘web deployment agent service’.
3. Wamp server doesn’t start apache form the console(the icon is yellow/orange in color)
Go to administrative tools–>services–>wampapache–>start (icon should turn green)