WAMP port 80 busy

你离开我真会死。 提交于 2019-11-26 04:19:48

问题


I have installed WAMP on Windows 7 64-bit. When I try to start it, it says port 80 is used by \"Server: Microsoft HTTPAPI/2.0\".

I have checked and IIS is not installed. What should I do?


回答1:


This problem can be also from SQL Server Reporting Services. You need to stop/disable this service from:

  1. Control Panel->System and Security->Administrative Tool->Services and stop the service named SQL Server Reporting Services (InstanceName)

  2. Open SQL Server Configuration Manager -> SQL Server Services stop/disable SQL Server Reporting Services (InstanceName)




回答2:


I've solved this today!!! You go to "Control Panel" >> "System And Security" >> "Administrative Tools" >> "Component Services" >> "Services (LOCAL)"

Now, since you are using WAMP and not IIS you should disable the "World Wide Web Publishing Service" and the "Web Deployment Agent Service". You are good to go.

If this doesn't work you probably have Skype using Port 80 (if you actually have Skype). (If you have IIS installed you should also disable it. But if you don't have it installed you shouldn't worry!)




回答3:


An other solution could be to simply alter the appache httpd.conf. You can acces this file from the wamp menu > Apache > httpd.conf

Next alter the

#Listen 12.34.56.78:80
Listen 80

To for example

#Listen 12.34.56.78:7080
Listen 7080

Restart wamp and services then type http://localhost:7080 and you'll have wamp up and running

And disable the IIS service if installed.




回答4:


I have successfully rooted out the problem in windows 8. I hope this will be helpful to others 1) Go to control panel -Turn window features on or off - uncheck: internet information service IIS and internet information service hostable web core.

2) Control panel + system and security + Administrative + services (Disable all SQL Servers).

3) This one no one so far mention it: -control panel + system and security + Administrative tools + system configuration + services (uncheck Web Deployment Agent Services).




回答5:


This worked for me:

  • Services > “Web Deployment Service Agent”
  • Stop, set to Manual
  • Restart WAMP

Source: http://theandystratton.com/2012/wampapache-broken-from-microsoft-httpapi-2-0-using-port-80




回答6:


I came across this other post which helped me. For me

The Apache service wouldn't start because TCP/IP port 80 was in use.

The error was, Port 80 is used by "Server : Microsoft HTTPAPI/2.0".

The obvious thing was to disable the IIS web server, which can also use port 80. But this didn't solve the problem.

It turns out there are a long list of other services that can also use Port 80: These include the following services.

  • SQL Server Reporting Services
  • World Wide Web Publishing Service
  • Web Deployment Agent Service
  • Branch Cache Service (<== This was the important one for us, and also the one that is least documented)

Source




回答7:


I had this issue as well.

After testing port 80 in the apache folder, it said that port 80 was being used by HTTPAPI/2.0.

I disabled web deployment agent service(MsDepSvc) then clicked start on wampapache and it started working.




回答8:


Recently found another service that steals port 80 - a recent update of Razer Synapse installed the "Razer Chrome SDK Server" service which takes it. Disabling this freed the port for me.




回答9:


Your WAMP does not start because port 80 is being use by another program (Microsoft-HTTP API).

So just change the port Apache uses. To do that click on your WAMP icon in tray go to APACHE and open httpd.conf. In the opened text editor look for the line

Listen 80

and replace it with

Listen x

where x is your desired new port.

Now WAMP should start ok and you could access localhost with http://localhost:x where x is your desired new port.

If by any chance you want a port that is already being used by another program you could see busy ports by going to command prompt and typing

netstat -ao

Also you should allow access to that port in your default browser too. You can find out how to do this for Firefox 3 by reading this article: Unblock a nonstandard port in Firefox3.




回答10:


On my Windows 10, netstat said PID 4 was listening at port 80 and the solution was to stop BranchCache service.

This was already mentioned in a comment by Adrian Adkison, but I add it in a comment for better visibility.




回答11:


If you have Visual Studio the Web Deployment Service also takes Port 80 by default.




回答12:


I have also facing the same issues.. I did the following steps to resolve the issue:-

1) Go to Control Panel-Administrative tools->Services

a) Stop the Web deployment Agent services and then right click on the service then click on the Properties and make it startup type Manual.

b) In the same way Stop the World Wide Web Publishing Services and mark it stratup type Manual.

c) Stop all services related to Sql Server

2) If IIS is already installed in your System..

a) Change the default port of IIS by opening IIS Manager

b) Then go to default Site->Default Web Site->Edit Bindings then chage the port to other than 80 i.e. 800

3) If Skype is installed and is in running state then also quit the skpye..

Then Click on Restart all services of WAMP server..(Now it should display green in colour) You can check it by write the following on your web browser.. http://localhost/phpmyadmin/

Hope the above steps will help you in starting WAMP server..




回答13:


In my case the port test said "Server : Microsoft HTTPAPI/2.0". Netstat revealed it was pid 4, system. I tried everything here so far and it was not:

  • IIS (Internet Information Services)
  • SQL Server Reporting Services
  • Any other SQL service
  • World Wide Web Publishing Service
  • Web Deployment Agent Service (MsDepSvc)
  • Skype
  • Remote agent service for the Microsoft Web Deploy 3.0
  • Visual Studio Test Controller

I finally found more answers on superuser and in my case it turned out to be http.sys. I changed the port it binds to with this:

netsh http add iplisten ipaddress=::

It freed the port immediately although i had te reboot before i could start wamp. Maybe because of all the random stuff i had disabled before :-)




回答14:


Update 2017- Wamp version 3.0.6

Right click on Wamp--> tool--> apache section-->use a port other than 80

Now listen to

http://localhost:7080/phpmyadmin/




回答15:


try to disable the service BranchCache:

  1. Press Start --> Run --> services.msc --> Enter
  2. Search for BranchCache service
  3. Right click on it & choose properties
  4. Change startup type to disabled
  5. Stop the service
  6. Hallelujah :)



回答16:


try starting wamp before skype ;]

Skype likes port 80...




回答17:


I had the same problem caused by Skype.

To disable use of port 80 in Skype:

Go to File -> Options... -> Connection and uncheck the one called "Use port 80 as an alternative for..."




回答18:


In my case i got "your port 80 is used by microsoft-httpapi" Service I had to stop is "Remote agent service for the Microsoft Web Deploy 3.0." After i stoped it my apache is started to work on port 80. I dont want to add every time port (8080) when i work. (Skype i changed too to some port (not 80))

Hope it helps




回答19:


BTW, this type of problem ties to similar posts concerning: port 80 in use by NT Kernel & System. For me, the problem was tied to Visual Studio 2012. I am running a test controller on my machine which communicates with test agents on remoted machines. The name of the service runing on my windows 7 x64 laptop is "Visual Studio Test Controller". Once I shut this service down, I was able to run anything I wanted on port 80 (apache in my case). The post by John above got me on the correct path to figure this out.




回答20:


It exists an easy way:

  1. Go to control panel->system and security->administrative tool->services and stop the services like sql, webdeployment and mics etc.
  2. Go to wamp manu-> apache->install services and then start services->test port 80 (make sure port 80 is free)
  3. Go to your browser and write [//localhost] or simply localhost a page will be shown.
  4. Create a directory in wamp/www/yourDirectory(i.e test). Put in this your php file with the name index.php. Now go to browser and type http://localhost/yourDirectory(i.e test)/.

That worked for me...




回答21:


A bunch of upvotes here for each answer identifying the culprit in an individual situation. But it would be good if there was an answer here with a list of the possible culprits to work through.

Sitepoint has a good post listing, identifying and resolving this problem for a range of possible port-80-using-services.

In summary, the possible culprits will be:

  • IIS
  • SQL Server Reporting Services
  • Skype
  • Web Deployment Agent Service

Check the Sitepoint post for full details.




回答22:


Detail blog to fix this issue is : http://goo.gl/JXWqfJ

You can solve this problem by following two ways:

  • A) Start your WAMP befor you login to skype. So that WAMP will take over the the port and there will be no conflict with the port number. And you are able to use Skype as well as WAMP. But this is not the permanent solution for your problem. Whenever you want to start WAMP you need to signout Skype first and than only you are able to start WAMP. Which is really i don’t like.

  • B) Second option is to change the port of Skype itself, so that it will not conflict with WAMP. Following screen/steps will help you to solve this problem:

    1. SignIn to Skype.
    2. Got to the Tools -> options
    3. Select the “Advanced” -> Connection
    4. Unchecked “Use port 80 and 443 as alternatives for incoming connections” checkbox and click save.
    5. Now Signout and SignIn again to skype. (this change will take affect only you relogin to skype)

Now every time you start WAMP will not conflict with skype.




回答23:


My way to resolve this problem is only to close Web Deployment Service Agent and set it "Manual" -- forever solved. Referenced:websites



来源:https://stackoverflow.com/questions/2158432/wamp-port-80-busy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!