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?
This problem can be also from SQL Server Reporting Services
. You need to stop/disable this service from:
Control Panel->System and Security->Administrative Tool->Services
and stop the service named SQL Server Reporting Services (InstanceName)Open
SQL Server Configuration Manager -> SQL Server Services
stop/disable SQL Server Reporting Services (InstanceName)
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!)
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.
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).
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
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)
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.
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.
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.
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.
If you have Visual Studio the Web Deployment Service also takes Port 80 by default.
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..
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 :-)
Update 2017- Wamp version 3.0.6
Right click on Wamp--> tool--> apache section-->use a port other than 80
Now listen to
try to disable the service BranchCache
:
- Press Start --> Run -->
services.msc
--> Enter - Search for
BranchCache
service - Right click on it & choose
properties
- Change startup type to
disabled
- Stop the service
- Hallelujah :)
try starting wamp before skype ;]
Skype likes port 80...
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..."
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
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.
It exists an easy way:
- Go to control panel->system and security->administrative tool->services and stop the services like sql, webdeployment and mics etc.
- Go to wamp manu-> apache->install services and then start services->test port 80 (make sure port 80 is free)
- Go to your browser and write [//localhost] or simply localhost a page will be shown.
- 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 typehttp://localhost/yourDirectory(i.e test)/
.
That worked for me...
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.
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:
- SignIn to Skype.
- Got to the Tools -> options
- Select the “Advanced” -> Connection
- Unchecked “Use port 80 and 443 as alternatives for incoming connections” checkbox and click save.
- 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.
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