php Wampserver 2.1 在 Windows 7 上安装后显示橙色图标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5273693/
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
Wampserver 2.1 gives orange icon after install on Windows 7
提问by Kennethvr
I just installed Wampserver 2.1 on my windows 7 64bit computer and the icon that should turn green, turns orange, saying that the server is not ready.
我刚刚在我的 Windows 7 64 位计算机上安装了 Wampserver 2.1,并且应该变成绿色的图标变成橙色,说服务器没有准备好。
The result is that on opening the browser on http://localhost/it just timed out.
结果是在http://localhost/上打开浏览器时它只是超时。
anybody an idea, I tried google on this, but without any correct result.
任何人的想法,我试过谷歌这个,但没有任何正确的结果。
The apache error log says this:
apache 错误日志是这样说的:
[Fri Mar 11 14:40:58 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations[Fri Mar 11 14:40:58 2011] [notice] Server built: Oct 24 2010 13:33:15
[Fri Mar 11 14:40:58 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Fri Mar 11 14:40:58 2011] [notice] Server built: Oct 24 2010 13:33:15
[Fri Mar 11 14:40:58 2011] [notice] Parent: Created child process 4320
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Child process is running
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Acquired the start mutex.
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Starting 64 worker threads.
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Starting thread to listen on port 80.
[Fri Mar 11 14:40:58 2011] [notice] Parent: Created child process 4320
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Child process is running
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Acquired the start mutex.
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Starting 64 worker threads.
[Fri Mar 11 14:40:58 2011] [notice] Child 4320: Starting thread to listen on port 80.
so no mayor issues in my opinion.
所以我认为没有市长问题。
versions running are: apache 2.2.17 php 5.3.4 mysql 5.1.53
运行的版本是:apache 2.2.17 php 5.3.4 mysql 5.1.53
If I use the service to test port 80, he does that ok, saying to me this:
如果我使用该服务来测试端口 80,他会这样做,他对我说:
Port 80 is actually being used by: Server: Apache/2.2.17 (win32) php/5.3.4
端口 80 实际被使用:服务器:Apache/2.2.17 (win32) php/5.3.4
update: It still isn't solved after some months and Skype is not even installed and never has been installed on the computer.
更新:几个月后仍然没有解决,甚至没有安装Skype,也从未在计算机上安装过。
回答by Gnewbie
It is probably your Skype giving you a hard time. Try configuring your Skype this way:
这可能是您的 Skype 给您带来了困难。尝试以这种方式配置您的 Skype:
Tools -> Options -> Advanced -> Connection -> Unchecking the 'Use port 80...'
工具 -> 选项 -> 高级 -> 连接 -> 取消选中“使用端口 80...”
I had the same problem and it worked for me.
我有同样的问题,它对我有用。
回答by Somesh Rao
I have had the same issues on Windows 7, orange WAMP icon and when the mouse is on the WAMP icon, it shows the server is online, but I cannot connect to the server. Found out nothing running on port 80, I do not have skype and my hosts file is correct.
我在 Windows 7 上遇到了同样的问题,橙色 WAMP 图标,当鼠标位于 WAMP 图标上时,它显示服务器在线,但我无法连接到服务器。发现端口 80 上没有任何运行,我没有 Skype 并且我的主机文件是正确的。
What worked for me is described below.
下面描述了对我有用的内容。
When I left click on the WAMP icon Apache -> Service, I saw that the start/stop service was grayed out.
当我左键单击 WAMP 图标 Apache -> 服务时,我看到启动/停止服务是灰色的。
So, I clicked on "Install service" Apache -> Service -> Install Service.
所以,我点击“安装服务”Apache -> 服务 -> 安装服务。
This did the trick
这成功了
回答by groo
check the Apache port being used by your wamp at "http.conf" . Try changing the port to a number above 1024 and than restart apache. Than try to access the Apache server using a url like http://localhost:$PORT_NUMBER_HERE . If it works is because your user does not have permission to open a socket below 1024. This is common in unix environments but I am not a windows user to know if it has the same restrictions. Have a try.
在 "http.conf" 检查 wamp 正在使用的 Apache 端口。尝试将端口更改为 1024 以上的数字,然后重新启动 apache。比尝试使用像http://localhost:$PORT_NUMBER_HERE这样的 URL 访问 Apache 服务器。如果它有效是因为您的用户没有权限打开低于 1024 的套接字。这在 unix 环境中很常见,但我不是 Windows 用户,不知道它是否有相同的限制。试试。
You might also check the windows firewall and give access to the port being used, if the firewall is blocking it.
如果防火墙阻止了它,您还可以检查 Windows 防火墙并授予对正在使用的端口的访问权限。
regards.
问候。
回答by Johan
I struggled with this for hours on end on different machines. Often one solution did not work on the next machine. This is what I, by trial and error, found out worked like a charm every time.
我在不同的机器上为此挣扎了几个小时。通常一个解决方案在下一台机器上不起作用。这就是我通过反复试验发现每次都像魅力一样的东西。
Installed WAMP on win7 POS
在win7 POS上安装WAMP
- Add MSVCR100.dll to System32
- Install VB 2008
- Install WAMP
- Disable World wide web publishing service in Services
- Start WAMP as administrator.
- 将 MSVCR100.dll 添加到 System32
- 安装 VB 2008
- 安装 WAMP
- 在服务中禁用万维网发布服务
- 以管理员身份启动 WAMP。
Finished. No need to edit httpd.conf, no need to edit hosts-file and no need to disable IIS.
完成的。无需编辑httpd.conf,无需编辑hosts-file,无需禁用IIS。
A total install of WAMP following these steps take well under ten minutes. Hope it does the trick for you as well.
按照这些步骤安装 WAMP 只需不到 10 分钟。希望它也对你有用。
回答by Phil
I use Wampserver 2.2. I had the same problem, icon would just stay orange... Here's what I found out : If you click on the
我使用 Wampserver 2.2。我有同样的问题,图标只会保持橙色......这是我发现的:如果你点击
Wamp Tray Icon > Apache > Service > Test Port 80
Wamp 托盘图标 > Apache > 服务 > 测试端口 80
Well that showed me what was already using port 80: Server : Microsoft-HTTPAPI/2.0
, which is not what I wanted... So I did like suggested above and changed the value of Listen 80 in http.conf to Listen 81. Stopped and restarted and it works.
好吧,这向我展示了什么已经在使用端口 80: Server : Microsoft-HTTPAPI/2.0
,这不是我想要的......所以我确实喜欢上面的建议并将 http.conf 中的 Listen 80 的值更改为 Listen 81。停止并重新启动,它可以工作。
回答by Abris
I had this problem with an orange wamp due to that IIS and/or the Web Deployment Agent Service used when developing web applications in Visual Studio was blocking port 80. When I stopped these two services wamp started just fine with a beautiful green icon :)
由于在 Visual Studio 中开发 Web 应用程序时使用的 IIS 和/或 Web 部署代理服务阻塞了端口 80,我遇到了橙色 wamp 的这个问题。当我停止这两个服务时,wamp 启动得很好,带有漂亮的绿色图标 :)
Run these two commads from the commandline as administrator to stop the services
以管理员身份从命令行运行这两个命令以停止服务
iisreset /stop
net stop msdepsvc
回答by Maarek
Check each service individually. MySQL uses port 3360 so that might be blocked as well.
单独检查每项服务。MySQL 使用端口 3360,因此它也可能被阻止。
On a personal note, I've been finding WAMP a problem after version 2.0i, so I switched to a Linux VM or even another computer running linux for my PHP development.
就个人而言,我在 2.0i 版本之后发现 WAMP 存在问题,因此我切换到 Linux VM 甚至另一台运行 linux 的计算机进行 PHP 开发。
Try EasyPHPsince you can install that onto a USB drive so you can keep the "WAMP" with you.
试试EasyPHP,因为您可以将它安装到 USB 驱动器上,这样您就可以随身携带“WAMP”。
回答by Tayark
Check your hosts file. It should be located @ /windows/system 32/drivers/etc/
检查您的主机文件。它应该位于@ /windows/system 32/drivers/etc/
Edit the file in notepad or something similar and look for two lines that read something like
在记事本或类似的东西中编辑文件,并寻找两行类似
# 127.0.0.1 localhost and # ::1 localhost
# 127.0.0.1 本地主机和 # ::1 本地主机
Remove the # from the beginning of each line, save the file (make sure there is no file extension when you do) and then restart WAMP.
删除每行开头的#,保存文件(确保没有文件扩展名),然后重新启动 WAMP。
This should work, at least it did for me, but there are various other programs that can conflict with WAMP like Skype.
这应该有效,至少对我来说是这样,但是还有其他各种程序可能会与 WAMP 发生冲突,例如 Skype。
Hope this works
希望这有效
回答by Kevin Pajak
I had the same issue, and after reading this post, I found that here's what you need to do, if you're running both Wamp and Skype at the same time, to avoid issues. MAKE SURE YOU OPEN YOUR WAMP SERVER FIRST, THEN OPEN SKYPE. That eliminated the problem, I was able to connect to the WAMP server with no problem, and the icon was green :).
我遇到了同样的问题,在阅读这篇文章后,我发现如果您同时运行 Wamp 和 Skype,您需要执行以下操作以避免出现问题。确保您先打开 WAMP 服务器,然后再打开 SKYPE。这消除了问题,我能够毫无问题地连接到 WAMP 服务器,并且图标是绿色的 :)。
回答by Clinton Green
I had the same error today. I changed the #listen from 80 to 86 and it still did not work.
我今天有同样的错误。我将 #listen 从 80 更改为 86,但它仍然不起作用。
I found this on the wampserver forum:
我在 wampserver 论坛上找到了这个:
- apache uses 80 (I changed this to 86 using the methods in other answers here)
- mysql uses 3306
- edit the my.ini in mysql folder
- change 3306 to 3307
- written 3 times in the file
- save and restart wamp.
- apache 使用 80(我使用此处其他答案中的方法将其更改为 86)
- mysql 使用 3306
- 编辑mysql文件夹中的my.ini
- 将 3306 更改为 3307
- 在文件中写入 3 次
- 保存并重新启动 wamp。
After this my icon finally turned green. However when I went to localhost it still said not found. This is because you need to append the new port you are using to localhost - ie localhost:86
在此之后,我的图标终于变成了绿色。但是,当我去 localhost 时,它仍然说找不到。这是因为您需要将您正在使用的新端口附加到 localhost - 即 localhost:86