Just had a very weird problem with MAMP for Windows 7 where Apache all of sudden could not bind onto port 80 for no reason and the Apache service was refusing to startup. I ran the port 80 test in MAMP and got the following message:
Microsoft HTTPAPI/2.0 use Port 80 – Cannot Start WAMP Apache
The fix for this is to find out which program or service is using port 80 and kill it.
Open a command prompt and type netstat -ao should reveal the culprit. You then just have to locate the PID of the process and then kill it in Task Manager. Easy I thought, although when I looked at task manager there was no sign of PID 4 – aaaarghhh!
Anyway after much trawling of the web, I discovered that killing a service called Branchcache was the offending service which had bound itself to port 80. This service “caches network content from peers on the local subnet.” I figured this wasn’t a system show stopper so killed it and this fixed the problem. Make sure to permanently disable the service or it will startup again on re-start.