Originally appeared at http://praveenpuglia.com/make-wamp-work-on-windows-10-technical-preview/
Note – This happens to work on Windows 10 release builds as well. Let me know if it doesn’t and I’ll look for another way to fix it.
Shortly after the Windows 10 Technical Preview was made available, I was excited to try it out. And so I did. Everything was pretty cool until I tried starting WAMP, just to find out that it never starts (stuck at the yellow state in the notification area). Whenever a new version of Windows comes up, there is something or the other wrong with WAMP.
Skype wasn’t the problem this time because I didn’t install it. I also removed the modern Skype that comes installed with the Technical Preview. Neither it was the IPV6 issue which stopped it from working on Windows 8.
As I figured out, the port 80 was being used by a native service named – World Wide Web Publishing Service. Stopping it and restarting WAMP did the trick. Here’s how to locate and stop the service.[screenshot below]
- Go to Start, type in services.msc
- Scroll down in the Services window to find the World Wide Web Publishing Service.
- Right-click on it, and select Stop.
Now restart WAMP and you should be good to go.
UPDATE – In the newer versions of Windows 10, you may not find the World Wide Web Publishing Service. If WAMP isn’t working even then, try the next approach.
If you don’t want to do it that way, you can change the WAMP listen port number. Here’s how to do that.
- Click on the WAMP icon in system tray.
- Select Apache > httpd.conf
- Search for Listen 80.
- Change 80 to any other port number e.g. – 9080.
- Restart WAMP.
WAMP will work now, and you can use that port number everywhere for access. E.g –
1 |
http://localhost:9080/ |
instead of just
1 |
http://localhost/ |
EDIT(17th March, 2015) : As mentioned here, I came to know that World Wide Web Publishing Service associates with IIS. Windows 10 comes pre-loaded with it. You either uninstall it or disable it while running Apache. For the latest build of Windows 10, the following from the mentioned link should solve the issue.
As of the current W10 Preview build (9926), install the MSVC2012 VC11 C/C++ runtime library to run WAMPServer 2.5 as W10 does not have this library as part of the W10 install.
Know a different workaround? Let me know in comments.
I’m having the same problem with XAMPP but this doesn’t solve my problem. Tried changing the port to no result, and I don’t have the WWWPS service in my list. Apache just won’t start.
Do you have Skype? If yes, stop it and then try. If no.. read on.
Did you install VC++ before installing XAMPP ? if not, download it from http://www.microsoft.com/en-us/download/details.aspx?id=30679 for your architecture x86 or x64 and then reinstall XAMPP.
Let me know if this doesn’t work.
No, if you have any other idea please tell me
Can you paste the wamp log file here? that would help.
Hello,
I have the same problem. MySql can’t start. It’s saying that the path isn’t correct
Great Job!!!
Thanks
Regards Praveen Puglia
Thank you works a treat. wonder what the purpose of this is
Thanks , Great Job !!!
Thanks a lot for sharing this solution. I was starting to go mental.
I can understand! this has been a pain for a LOT of people. Glad it helped.
Check the video
https://www.youtube.com/watch?v=kiNqkk-TtBI
I am gonna delete this one because all you are trying to do is to promote a video you made without explaining why people should watch it or does it directly solve their problems.
Thank you..
cool! Thank you, it works, perfect!
My wamp is now working on my window 10 after stopping the World Wide Web, from ‘services.msc”
Great Job!!!
Thanks
Problem detected!
2:52:18 PM [Apache] Port 80 in use by “”D:\kingsleyking\xam\apache\bin\httpd.exe” -k runservice” with PID 2388!
2:52:18 PM [Apache] Apache WILL NOT start without the configured ports free!
2:52:18 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
2:52:18 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
2:52:18 PM [Apache] Attempting to start Apache service…
2:52:18 PM [Apache] Executing “net start “Apache2.4″”
2:52:18 PM [Apache] Return code: 0
i did what you guide but still not start Apache.
There must be some program blocking port. assuming you have not changed the default port for apache, which is 80, try to look for other programs blocking that port.
http://stackoverflow.com/questions/1960750/how-to-find-which-program-is-using-port-80-in-windows
This might help. Try closing that program and restart apache/WAMP
i have installed MSVC2012 VC11 C/C++ runtime library but still wamp is not working in my win 10.. please tell me what should i do?
Did you check whether the World Wide Web Publishing service is running or stopped?
Stopping/Disabling the World Wide Web Publishing Service worked for me with XAMPP. I upgraded to Windows 10 about a week ago, on Nov. 26th, 2015. Thank you for posting this.
I am really glad it helped you and many others! 🙂
The SERVICE_NAME of World Wide Web Publishing Service is w3svc.
So from a (administrator) command prompt, you can
“sc stop w3svc”.
This service shows up when you run msconfig (Services) so you can uncheck it for booting.
I’d like to know if/when I will miss w3svc.
Thanks I have solved it for my pc .Thanks a lot again
11:10:53 PM [Apache] Attempting to start Apache app…
11:10:53 PM [Apache] Status change detected: running
11:10:57 PM [mysql] Attempting to start MySQL app…
11:10:58 PM [mysql] Status change detected: running
But when I try to open localhost on the browser, it takes me to http://localhost/dashboard/
Rather I would want to open the xampp page to start from.
Is there a solution to it on Windows 10?
Thanks in advance.
I have never faced an issue like that before. can you make a quick video of what happens, put it online where I can see it?
very good explanation, thanks so much
I don’t have word wide web publishing, I changed the port number. Nothing is working.
Did you use the updated port number to go to WAMP admin page? example if you changed your port number to
9090
, you should now go tolocalhost:9090
to access your sites or WAMP admin.thanks a lot .it is working now.
please this the problem that is showing on my xamp
Error: Apache shutdown unexpectedly.
11:20:19 AM [Apache] This may be due to a blocked port, missing dependencies,
11:20:19 AM [Apache] improper privileges, a crash, or a shutdown by another method.
11:20:19 AM [Apache] Press the Logs button to view error logs and check
11:20:19 AM [Apache] the Windows Event Viewer for more clues
11:20:19 AM [Apache] If you need more help, copy and post this
11:20:19 AM [Apache] entire log window on the forums
BRO! u r a lifesaver
I just updated to Windows 10 this evening. I tried all of the fixes outlined above and I still cannot get Apache to start. I receive the following error. MySQL is still working. Any ideas? I’m a student and desperate for a fix so that I can finish my homework! Thanks in advance.
10:44:16 PM [Apache] Error: Apache shutdown unexpectedly.
10:44:16 PM [Apache] This may be due to a blocked port, missing dependencies,
10:44:16 PM [Apache] improper privileges, a crash, or a shutdown by another method.
10:44:16 PM [Apache] Press the Logs button to view error logs and check
10:44:16 PM [Apache] the Windows Event Viewer for more clues
10:44:16 PM [Apache] If you need more help, copy and post this
10:44:16 PM [Apache] entire log window on the forums
When I run c:/xampp/apache/conf/http.conf; in the command line I get the following error:
AH00526: Syntax error on line 244 of c:/xampp/apache/conf/http.conf:
DocumentRoot must be a directory.
Indeed, line 244 in the conf file is:
DocumentRoot “C:/xampp/htdocs”
So it must be the root directory, but I have no idea how to fix it. Sorry, I’m sure this is a stupid question, I’m just really new to this.
Thanks
thanks a lot sir,it works with me
Pingback: Should I Use Wamp Or Xampp | Dumamey
awesome man! fine solution
I cant even install either of them on windows 10. Stops 90% of way through and get windows error. “This program has stooped running…..”
You mean the installation?
thanks man,the first solution worked
Thank you sir it’s really great and nice post i’m learn new things from this.
i’m also publish tutorial video how to install xampp on windows http://ranaraheeltariq.info/blog/install-xampp-on-windows-10-step-by-step-guideline/ step by step complete guideline and also discuss how to install wordPress on XAMPP.
Thank you