34
votes

I had WAMP working happily on windows 7 as my local development server. Upgraded to Windows 10 today and had an orange WAMP icon on my taskbar. Turns out Windows had installed and ran IIS automatically (why?).

I disabled IIS, restarted, started WAMP and the icon turned green. However, going to localhost results in a connection refused message. I used the 'Test Port 80' option on the WAMP menu and it says that yes, Server: Apache/2.2.21 (Win32) PHP/5.3.10 is listening on port 80.

The Apache error log doesn't display anything helpful.

[Wed Jul 29 17:48:40 2015] [notice] Apache/2.2.21 (Win32) PHP/5.3.10 configured -- resuming normal operations
[Wed Jul 29 17:48:40 2015] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jul 29 17:48:40 2015] [notice] Parent: Created child process 4200
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Child process is running
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Acquired the start mutex.
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Starting 64 worker threads.
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Starting thread to listen on port 80.
[Wed Jul 29 17:48:41 2015] [notice] Child 4200: Starting thread to listen on port 80.

The Apache access log just displays several instances of

127.0.0.1 - - [29/Jul/2015:17:52:47 -0700] "GET / HTTP/1.1" 302 202

Any hints, clues, questions to ask on how to proceed? Any way to get more details on why the connection would be refused, and what changed in Windows 10 that would cause it?

30
I got the same problem, net stop WAS and restarting Apache solved it.Benoit Esnard

30 Answers

45
votes
  1. Search for "Turn Windows features on or off" on the taskbar.
  2. Under "Internet Information Services" deselect "World Wide Web Services" that Microsoft must turn on by default (takes port).
  3. Reboot and WAMP came back up as before.

With some windows updates it might occur the need to repeat this operation

41
votes

When I upgraded to Windows 10, Wamp had a port problem with Apache.

Run cmd as Administrator, and enter:

iisreset /stop

Then Apache > Service > Install Service will prompt you to press Enter to install as normal.

Once installed Restart All Services and you should be up and running.

You may also need to install: http://www.microsoft.com/en-us/download/details.aspx?id=30679

11
votes

it's working: Enjoy

1. Go to Start, type in services.msc
2. Scroll down in the Services window to find the World Wide Web Publishing Service.
3. Right click on it and select Stop.
4. Now restart WAMP and you should be good to go.

Remember every time you need to do after restarting your computer... :)

10
votes

My WAMP icon was RED after upgrading from Windows 8.1 to Windows 10.

I found the solution here: http://forum.wampserver.com/read.php?2,134516#msg-134518

The W10 install will have over wirtten all knowledge of the Apache and MySQL services.

Dont Panic: All you need to do is:

Start WampServer

left click wampmanager -> Apache -> Services -> Install Service

left click wampmanager -> MySQL -> Services -> Install Service

Stop WampServer

Start WampServer

It should be fine now.

I didn't have IIS running, and nothing was using my port 80. Didn't even restart the PC, just the above solved my WAMP issues. Hope this helps someone else!

8
votes

If other answers not work, try running wampserver as administrator. enter image description here

2
votes

Windows 10

My solution: You have to remove wamp completely, I used REVO Uninstaller which remove all files. Check that there is NO Wamp Folder on the C:/ drive. Empty trash bin.

Go to windows and install all the c++ visuals and updates (for what ever system you have).

Restart machine every time it tells you to, download a fresh wamp and install.

Start wamp, it should go orange.

Go to windows programs (turn features on / off and remove remove IIS service, reboot the machine, restart wamp and bingo it goes green!

I know that this seems along way round but it worked for me after trying all the suggestions on here.

1
votes

Check you HOSTS file. c:\windows\system32\drivers\etc\hosts you will need admin privileges to edit this file.

It should contain at least these lines without a # comment symbol in column 1 :-

127.0.0.1  localhost
::1  localhost

plus any entries for Virtual Hosts you may have.

1
votes

Figured it out. I had a static IP before the update. The router port forwarded to it to allow me to use a subdomain of our dns entry to access the dev server. Restoring the static IP configuration solved the problem.

1
votes

i figured out after many trials that the 32 bit version working perfectly , The 64 version insist not to work

1
votes

If nothing helped you above like it was the case for me.

Find what is on port 80

netstat -aon | findstr :80

And kill the pid found

taskkill /PID pidFound

example:

taskkill /PID 1852

It was SKYPE...

Have a nice day ;)

1
votes

If nothing helped you above like it was the case for me.

Find what is on port 80

netstat -aon | findstr :80

And kill the pid found

taskkill /PID pidFound

example:

taskkill /PID 1852

It was Skype for me

1
votes

If you installed on Windows, its common issue you come up with Wamp server since default windows web services (ie IIS) uses your port which is 80.

You could find it with netstat -aon | findstr :80

Simple solution is finding another port :) within 1024-49151 enter image description here

1
votes

since the last update of windows in december(approx 21st dec) i was facing some critical problem and not starting apache is one of them.

I was looking for a proper solution since. so i followed following steps

1) checked service and found wampapache64 service was not starting. tried to start manually with different settings but nothing worked

2) tried removing and installing service of apache from wamp menu but didnt work either

3) so i tried the bellow code in cmd(administrative mode)

cd c:/wamp/bin/apache/ApacheX.X.X/bin httpd.exe -e debug

it started my apache service

(if this dont start then try step 2 again)

even after all this your apache service dont start right click on wamp icon>tools>restart DNS and then restart wamp

(before the windows update i had set static ip, so it was not working when i removed that ip. the above process allowed access to dynamic ip

this will surely work. good luck

0
votes

I had the same problem on Windows 10 64-bit, running Wamp 2.5 64-bit.

Unfortunately, the above solutions didn't work for my specific problem. Solutions from other sites failed as well.

However, I was able to fix this by uninstalling the 64-bit Visual C++ redistributable for Visual Studio 2012 and installing the 32-bit version in it's place.

I re-installed Wamp, and voila - Problem solved.

Hope this helps.

0
votes

Windows 10 have the "World Wide Web Publishing" enabled by default, which is occupying port 80.

Check this answer out: https://stackoverflow.com/a/31884592/209532

0
votes

Try to put on a CD/DVD first I've done that as well it works better cause it sees it as boot

0
votes

The aswere provide by @rybo11, working like a charm in windows 10.
Follow this steps:

  • Run cmd like administrator
  • write this command in terminal: iisreset /stop
  • Install wamp server 32/64 bit
  • Enjoy!
0
votes

I have been reading all the solutions, and honestly I got lost as I am not that technical. This is my solution: click on the vamp icon (left mouse button) and go with your pointer to apache, once you on appache you will see the httpd.conf file. Open this file and look for the nexy line: Listen 12.34.56.78:80 Listen 0.0.0.80 Listen [::0]:80. Change 80 into i.e. 12. Save the file and restart services. Use localhost:12 as url. It works for me.

0
votes

If you don't have ISS started, and have a same problem...

Try it: In my case, i use Skype and this problem is caused because the Skype use 80 and 443 ports to accept incoming connections aditionals.

In Skype, click in Tools -> Options -> Advanced -> Connections -> set unmarked checkbox (Use 80 and 443 ports for connections...)

Reboot your Windows, and the WAMPSERVER start all services correctly.

be happy!

0
votes

Activating WAMP after the 2015-2016 update

  1. Right click on "This PC" on your desktop and choose "Manage"
  2. On the left side select the "Services and Applications"
  3. Double click on "Services" in the middle window
  4. Scroll down in the Services window to find the World Wide Web Publishing Service. Right click on it and select Stop.
  5. Now restart WAMP and you should be good to go.
0
votes

I got a windows 10 64 bit machine. I simply uninstalled the existing 64bit wamp installed, and installed 32 bit after installing VC++ support.

Now it worked for me

0
votes

EDIT: if you have already installed WITHOUT admin. privileges you need to do a reinstall WITH admin. privileges. Less won't do (at least for me).

What Mohammad Ali Akbari said was the turning point for me, up until that point all I ever got was red. Here's listed my full set of actions (note that some of them might be redundant):

1) download C++ redistibutable like so many others said - I chose 32-bit version (x86) just to be sure as some1 noted it might be an issue using x64

2) make sure IIS is disabled (and no other program occupies port 80) - again as described by so many others (control panel -> programs and functions -> disable or enable windows functions), testable by rightclicking wampserver icon -> tools -> Test port 80

3) I also manually edited the host file c:\windows\system32\drivers\etc\hosts as described by RiggsFolly to uncomment

127.0.0.1  localhost
::1  localhost

4) And finally I ran the program with administrator privileges

Result: instant full green icon :)

Hope it helps, and thank you all for this thread!

0
votes

easy way to fix click wamp icon than click Apache and from there click httpd.conf and open it and find this line in file

Listen 12.34.56.78:80

Listen 80

change this to

Listen 12.34.56.78:81

Listen 81

now restart wamp services now in browser window you can access localhost by typing this

localhost:81

0
votes

Ig you have Skype running close it and restart all services!

0
votes

I install wamp and visual C++ which is required for windows 10 but my wamp is orange. I just follow these step. 1 - Left click on wamp icon >> Apache >> Services 2-Click on Install services 3- Stop and restart wamp server

and it turn to green. one more thing you need to check if you are using skype. Open skype 1Tool>>Option>>advance>>Connection Uncheck the port 80 it by default selected.

0
votes

Setting up WAMP on Windows 10 I struggled with this for 2 days and finally found a very simple solution.

  1. I completely uninstalled WAMP. After messing with it for 2 days, I wanted to make sure to start over with "factory settings."

    1. I downloaded a new copy of WAMP. During the install process it told me that a WAMP folder already existed, and asked if I still wanted to install it there. I said yes.
    2. I opened notepad as an administrator. I navigated to HOSTS file. C:\windows\system32\drivers\etc\hosts
      I removed the '#' comment from these 2 lines. 127.0.0.1 localhost ::1 localhost

    3. I saved the file, and bingo! Worked like a charm. WAMP worked exactly as it was supposed to after that. And BTW, I didn't have to change any port settings.

Hope this helps someone else.

0
votes

I use WAMP x64 version and had an issue of apache not starting, this I fixed by installing Microsoft Visual C++ 2012 Redistributable. After a restart apache was working again.

0
votes

Left click on the Wamp icon > Localhost.

If this brings up the WampServer page, Apache is running.

If you can't get to the WampServer page, then you should left click on the Wamp icon > Apache > Service.

If all options there are grayed out except Install Service and Remove Service, then click Install Service.

Left click on the Wamp icon > Restart all services.

Click phpmyadmin under the Tools heading. If you get an error like (#2002), then there is likely a problem with your MySQL installation.

Left click on theWamp icon > MySQL > Service.

If all options there are grayed out except Install Service and Remove Service, then click Install Service.

Left click on the Wamp icon > Restart all services.

This fixed the problem for me and I hope it does for others as well.

0
votes

I have solved this issue by stopping a service
SQL Server Reporting Service(SQLEXPRESS)
and install apache service.

0
votes

If you use VMWare -> just go to windows services (type services in search bar) and right-click on VMware Authorization Service (from list) and at the end select stop. Now try to start apache again.