升级到 Windows 10,现在 WAMP 不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31713586/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Upgraded to Windows 10 and now WAMP won't work
提问by aurath
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?).
我让 WAMP 在 Windows 7 作为我的本地开发服务器上愉快地工作。今天升级到 Windows 10,我的任务栏上有一个橙色的 WAMP 图标。原来 Windows 已经安装并自动运行了 IIS(为什么?)。
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.
我禁用了 IIS,重新启动,启动 WAMP,图标变成绿色。但是,转到 localhost 会导致连接被拒绝的消息。我使用了 WAMP 菜单上的“测试端口 80”选项,它说是的,Server: Apache/2.2.21 (Win32) PHP/5.3.10
正在侦听端口 80。
The Apache error log doesn't display anything helpful.
Apache 错误日志没有显示任何有用的信息。
[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
Apache 访问日志只显示了几个实例
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?
关于如何进行的任何提示、线索和问题?有什么方法可以获取有关连接被拒绝的原因的更多详细信息,以及 Windows 10 中哪些更改会导致连接被拒绝?
采纳答案by aurath
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.
弄清楚了。更新前我有一个静态IP。路由器端口转发给它,以允许我使用我们的 dns 条目的子域来访问开发服务器。恢复静态 IP 配置解决了问题。
回答by Hyman
- Search for "Turn Windows features on or off" on the taskbar.
- Under "Internet Information Services" deselect "World Wide Web Services" that Microsoft must turn on by default (takes port).
- Reboot and WAMP came back up as before.
- 在任务栏上搜索“打开或关闭 Windows 功能”。
- 在“Internet 信息服务”下取消选择 Microsoft 必须默认打开的“万维网服务”(占用端口)。
- 重新启动和 WAMP 像以前一样恢复。
With some windows updates it might occur the need to repeat this operation
对于某些 Windows 更新,可能需要重复此操作
回答by rybo111
When I upgraded to Windows 10, Wamp had a port problem with Apache.
当我升级到 Windows 10 时,Wamp 遇到了 Apache 的端口问题。
Run cmd
as Administrator, and enter:
cmd
以管理员身份运行,输入:
iisreset /stop
Then Apache > Service > Install Service
will prompt you to press Enter to install as normal.
然后Apache > Service > Install Service
会提示你按回车正常安装。
Once installed Restart All Services
and you should be up and running.
安装后Restart All Services
,您应该可以启动并运行了。
You may also need to install: http://www.microsoft.com/en-us/download/details.aspx?id=30679
您可能还需要安装:http: //www.microsoft.com/en-us/download/details.aspx?id=30679
回答by Arslan Tabassum
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... :)
请记住每次重新启动计算机后需要执行的操作... :)
回答by dean.huczok
My WAMP icon was RED after upgrading from Windows 8.1 to Windows 10.
从 Windows 8.1 升级到 Windows 10 后,我的 WAMP 图标变为红色。
I found the solution here: http://forum.wampserver.com/read.php?2,134516#msg-134518
我在这里找到了解决方案: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.
W10 安装将涵盖 Apache 和 MySQL 服务的所有知识。
不要恐慌:您需要做的就是:
启动 WampServer
左键单击 wampmanager -> Apache -> 服务 -> 安装服务
左键 wampmanager -> MySQL -> 服务 -> 安装服务
停止 WampServer
启动 WampServer
现在应该没问题了。
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!
我没有运行 IIS,也没有任何东西在使用我的 80 端口。甚至没有重新启动 PC,只是以上解决了我的 WAMP 问题。希望这对其他人有帮助!
回答by Mohammad Ali Akbari
回答by Philip Rowell
Windows 10
视窗 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.
我的解决方案:您必须wamp
完全删除,我使用REVO Uninstaller
它删除所有文件。检查 C:/ 驱动器上是否没有 Wamp 文件夹。空垃圾桶。
Go to windows and install all the c++ visuals and updates (for what ever system you have).
转到 windows 并安装所有 c++ 视觉效果和更新(适用于您拥有的任何系统)。
Restart machine every time it tells you to, download a fresh wamp
and install.
每次它告诉你重新启动机器,下载一个新的wamp
并安装。
Start wamp
, it should go orange.
开始wamp
,它应该变成橙色。
Go to windows programs (turn features on / off and remove remove IIS service, reboot the machine, restart wamp and bingo it goes green!
转到Windows程序(打开/关闭功能并删除删除IIS服务,重新启动机器,重新启动wamp和宾果游戏它变绿了!
I know that this seems along way round but it worked for me after trying all the suggestions on here.
我知道这似乎是一路顺风,但在尝试了这里的所有建议后,它对我有用。
回答by RiggsFolly
Check you HOSTS file. c:\windows\system32\drivers\etc\hosts
you will need admin privileges to edit this file.
检查您的 HOSTS 文件。c:\windows\system32\drivers\etc\hosts
您将需要管理员权限才能编辑此文件。
It should contain at least these lines without a #
comment symbol in column 1:-
它应该至少包含这些行,第 1 列中没有#
注释符号:-
127.0.0.1 localhost
::1 localhost
plus any entries for Virtual Hosts you may have.
加上您可能拥有的虚拟主机的任何条目。
回答by Hos Mercury
i figured out after many trials that the 32 bit version working perfectly , The 64 version insist not to work
经过多次试验,我发现 32 位版本运行良好,而 64 位版本坚持不工作
回答by user5459593
If nothing helped you above like it was the case for me.
如果没有什么能帮助你,就像我的情况一样。
Find what is on port 80
查找端口 80 上的内容
netstat -aon | findstr :80
And kill the pid found
并杀死找到的pid
taskkill /PID pidFound
example:
例子:
taskkill /PID 1852
It was SKYPE...
是Skype...
Have a nice day ;)
祝你今天过得愉快 ;)