WAMP/Apache Broken From “Microsoft HTTP/API 2.0″ Using Port 80

My coworker, Dora, was attempting to get WAMP to run a locally hosted development environment on her Windows 7 computer. She could not get Apache to start and was getting a 404 error when visiting localhost in her browser.

By using the WAMP command (WAMP Menu > Apache > Services > Test Port 80), I saw that “Microsoft HTTP/API 2.0″ was using port 80.

Turning off Microsoft HTTP/API 2.0

After some fruitless Google searches, I found a stray post noting that this could be the Web Deployment Service Agent. As a former Windows user, of many years now, I can’t even comment (or care) what this service is for, all I can do is tell you how I disabled it:

  1. Open your Control Panel (Start > Control Panel)
  2. Change the view setting from Category to Small or Large Icons
  3. Open Administrative Tools
  4. Open Services
  5. Find “Web Deployment Service Agent” in the list
  6. Right click and choose Properties
  7. Click Stop
  8. Change it’s Start Up value to “Manual”
  9. Hit Apply/OK to save the changes
  10. Go to WAMP and restart all services

This should do it.

What if I don’t want to turn off the Web Deployment Service Agent

A quicker solution that should keep this service running would be to configure WAMP to run under another port other than 80, such as 8080. You will have to append :8080 to your localhost hostname, but it should work.

I haven’t tested it and can’t offer support for Windows users. Just wanted to post my solution in the hopes that it helps other lost souls!

15 Comments

  1. wampuser says…

    Thanks! It Works! :)

  2. James Beswick says…

    Thanks for posting this – I spent ages trying to figure out the same problem! Apparently, Visual Basic .NET installs the Web Deployment Agent.

  3. Getting WAMP | Tom's Blog says…

    [...] The installation isn’t as straightforward as I expected, so I thought I should keep a record of the steps I took. WampServer is one of the many HTTP server packages available through SourceForge. After downloading and installing the package on my Windows 8 (64 bit) notebook, I ran into the problem of not being able to start Apache server. Fortunately, Andy Stratton had the following explanation and solution: [...]

  4. Omar says…

    Thank you so much, It works!

  5. Steve says…

    Many thanks. Fixed my problem; I can now use WAMP again.

  6. Sarah says…

    I have a unique problem, Apache doesn’t seem to be using port 80 when I test for Port 80 in WAMP. I still can’t get it to start/resume service. Do you have any suggestions?

  7. andy says…

    Something must be using port 80 or you have something running on your machine not allowing you to bind to it. It’s out of the scope of my knowledge, especially with Windows… I’m sorry!

  8. Diego says…

    Hi,

    When I tested the port 80 I can see the Microsoft-HTTPAPI/2.0

    But there is not a service named Web Deployment Service Agent.

    What can I do?

    This is a Windows 7 Enterprise Running on a Oracle Virtual Machine over a MAC OS as host.

  9. Rahul Murari says…

    wow…….thank u soooo much.

  10. Deep says…

    Thank you very much. This is such a very helpful post. Surely a lot of PHP developers out there that had been benefited by this very helpful post. Keep it up!

  11. Wellington Americano says…

    Muito obrigado!!! Thanks very much!!!

  12. Marco says…

    thanks!!! for those using a version in spanish web deployment service agent can be found as “servicio agente de la implementacion de web”

  13. mbakacd says…

    I have gone through a lot of Google searches… but to no avail.. i can not find Web Deployment Service Agent in my services.. so what can i do. using windows 7

  14. Andy says…

    @mbakacd I’m not 100% sure; this was written after helping a friend on their Windows machine… I don’t have a copy of Windows right now and I can’t recall how I found the service.

  15. ramiz says…

    thxxxxxxx for ur help.

RSS feed for comments on this post. TrackBack URL

Leave a Comment

July 18, 2012

Filed in Development, Miscellaneous

There are 15 comments »


« Back to the Blog