RSS

PORT 80 USED BY MICROSOFT-HTTPAPI/2.0

06 Jun

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

127.0.0.1 localhost

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)

Advertisements
 
35 Comments

Posted by on June 6, 2012 in WAMP Issues

 

35 responses to “PORT 80 USED BY MICROSOFT-HTTPAPI/2.0

  1. Anonymous

    October 10, 2012 at 2:38 am

    can you get this

     
    • xploresd

      October 11, 2012 at 4:39 am

      Yes, I was able to resolve it by the above troubleshooting steps. Let me know if you need help

       
  2. Mike

    November 10, 2012 at 7:46 am

    Tried all the steps above on windows 7 and after I stopped the Web Deployment Agent Service, I restarted my computer and the service starts again and I’m getting the same problem.

     
    • Mike

      November 10, 2012 at 8:03 am

      I should also add – I changed the startup type to be “manual” and it doesn’t appear to be running however I still have the same problem.

       
      • xploresd

        November 10, 2012 at 11:43 am

        After you stop the Web Deployment Agent Service the startup type should be disabled. In the services start the wampapache service and have the startup type to be automatic. Let me know if you still get the port 80 error.

         
  3. Pathik

    November 17, 2012 at 5:21 pm

    Thanks a lot,,, after struggling whole day i got idea to search the problem this way and has been solved by above given suggestion. But i would like to share my problem to help others. it was not like i was not able to see any .php page in browser. First i have changed my port number from 80 to any other and I could see all php webpages but when the database connection comes to the picture it just keep waiting for response which means NO ERROR / NO RESPONSE. and that is so annoying to sort out. so If you can see php pages without database connection and when a database tries to connect and it doesn’t response or work still TRY THIS ONCE.

     
    • xploresd

      November 17, 2012 at 6:40 pm

      I am glad that you were able to resolve it and thank you for sharing the info Pathik!

       
  4. superdude

    November 29, 2012 at 2:06 pm

    Thank you so much!! You solved the problem I have been trying to solve for ever.

     
    • xploresd

      November 29, 2012 at 8:33 pm

      Glad you were able to fix it superdude!

       
      • YE YE

        July 24, 2014 at 8:48 pm

        no , how still yellow wamp

         
  5. Carlos Cardona

    March 10, 2013 at 8:07 pm

    Thank you so much, It’s going now. Really appreciated your help.

     
  6. Anonymous

    March 26, 2013 at 1:56 am

    thanks for this post.

     
  7. Sthira

    April 10, 2013 at 7:20 am

    Simple solution…
    click on the “W” icon on the task bar > got to “Apache” > select “httpd.conf” > change “listen to port 80” to “81”

     
    • Anonymous

      May 5, 2014 at 4:24 am

      Thank you ..its working now.
      All of you try this and problem will be solved.
      after that step you would access your localhost by: localhost:81(note: in my pc it is working in Google chrome browser but not in mozila ,you can try any one)

       
  8. stephen

    April 27, 2013 at 9:16 am

    stop MsDepSvc, web development remote agent from services

     
  9. TonyC

    May 16, 2013 at 11:47 am

    Thank you Sthira. When nothing else worked from any other posts I read, this was the fix. My W finally went green. Wow that was frustrating.

    Simple solution…
    click on the “W” icon on the task bar > go to “Apache” > select “httpd.conf” > change “listen to port 80″ to “81″
    #Listen 12.34.56.78:81 (instead of 80)
    Listen 81 (instead of 80)

     
  10. Ahmed Ebaid

    June 5, 2013 at 10:07 am

    In my case, the above answer didn’t work for me as the IIS was already disabled. This could be resolved by adding a new port to the Apache httpd.conf file (e.g port number = 81). Therefore, you could access the local host through localhost:81/index.php. Your local host will be the IPV4 address in case that you are using a wifi.

     
  11. Ahmed Ebaid

    June 5, 2013 at 10:09 am

    In my case, the above answer didn’t work for me as the IIS was already disabled. This could be resolved by adding a new port to the Apache httpd.conf file (e.g port number = 81). Therefore, you could access the local host through localhost:81/index.php. Your local host will be the IPV4 address in case that you are using a wifi.

     
  12. samazanka

    June 17, 2013 at 4:18 am

    I didn’t understand no fuckin thing.

     
  13. fatin

    June 20, 2013 at 11:01 pm

    how to add the port? im quite frustating with my freaking orange color. 😦

     
  14. sureshranju

    July 6, 2013 at 12:34 pm

     
  15. Gopal Aggarwal

    July 21, 2013 at 10:54 pm

    Thanks!

     
  16. Kar Sho

    January 5, 2014 at 11:29 pm

    Good Answer. Me too giving 3 way solution for WAMP and Skype Conflict. See-> http://www.steptoinstall.com/install-both-wamp-and-skype-conflict-windows-3-ways.html

     
  17. Anonymous

    May 5, 2014 at 4:28 am

    Simple solution…
    click on the “W” icon on the task bar > got to “Apache” > select “httpd.conf” > change “listen to port 80″ to “81″

    after that step you would access your localhost by: localhost:81(note: in my pc it is working in Google chrome browser but not in mozila ,you can try any one)

     
  18. ianmartinleonardo

    May 27, 2014 at 8:26 pm

    I’ve read many forums/solutions online on how to fix things in Wampserver..
    But this one solved the problem!
    Thank you so much for this!!!

     
  19. Ganesh

    July 26, 2014 at 1:13 am

    Thank you.

     
  20. Tayo Okoh

    September 18, 2014 at 8:09 am

    Thanks!

     
  21. Anonymous

    December 23, 2014 at 1:08 am

    Thanks

     
  22. Hansa

    February 2, 2015 at 7:21 pm

    Lot Of Thanks

     
  23. Anonymous

    May 4, 2015 at 4:08 pm

    I followed all the steps and apache is working fine, but localhost is not working; gives me webpage not found error.
    please assist

     
  24. Balvir Chand

    May 26, 2015 at 2:07 pm

    Thanks a lot It’s work for me by disable “Web Deployment Agent Service”

     
  25. razeenmk

    November 3, 2015 at 1:12 am

    Its possible that your port is used by other programs. Follow the steps in this guide http://theinforoom.blogspot.in/2015/11/how-to-solve-port-80-problems-when.html

    Got this after searching for Hours. 😀

     
  26. rahul

    February 7, 2016 at 10:02 pm


    check out.. i hope it helps..

     
  27. Loren Contee

    August 6, 2016 at 5:01 am

    Thank you for sharing superb informations. Your site is so cool. I am impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my pal, ROCK! I found just the information I already searched everywhere and just could not come across. What a perfect web-site.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

 
%d bloggers like this: