php Wamp 服务器不会变成绿色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17168624/
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
Wamp Server not goes to green color
提问by KarSho
I Installed WAMP Server Successfully.
我成功安装了 WAMP 服务器。
My OS is: Windows 7 32-bits
我的操作系统是: Windows 7 32-bits
My Wamp Server is: 2.2E ( 32bits & php 5.3 )
我的 Wamp 服务器是: 2.2E ( 32bits & php 5.3 )
I had same problem 4 months back. That time, I used this link. (but OS & WAMP are 64-bits) It's worked fine.
4 个月前我遇到了同样的问题。那个时候,我用了这个链接。(但 OS 和 WAMP 是 64 位)它运行良好。
Now, that MSVCR100.dll
not gave any problem. But WAMP logo is always 'yellow' color only. That's not return to 'green'. I installed vcredist_x86.exe
现在,这MSVCR100.dll
没有任何问题。但 WAMP 标志始终只有“黄色”颜色。那不是回到“绿色”。我安装了vcredist_x86.exe
I uninstalled 'Avast
', for my friend refer. But no Use. Help Me...
我卸载了' Avast
',供我的朋友参考。但没有用。帮我...
Thank you...
谢谢...
回答by Mark Evans
You can check if the port is being used by other program using WAMP menu -
您可以使用 WAMP 菜单检查其他程序是否正在使用该端口 -
Click on WAMP icon
select Apache -> Service -> Test Port 80
, this will check if the port is used by any other programAlso do this
select Apache -> Service -> Install Service
, this will make apache use port 80 if the port is not already used by any other program like IIS or Skype
单击 WAMP 图标
select Apache -> Service -> Test Port 80
,这将检查该端口是否被任何其他程序使用也这样做
select Apache -> Service -> Install Service
,如果端口尚未被任何其他程序(如 IIS 或 Skype)使用,这将使 apache 使用端口 80。
Restart the WAMP see if the problem is fixed.
重新启动 WAMP 查看问题是否已解决。
If port 80 is already used by some program, then you can choose other listening port for WAMP. To do this -
如果 80 端口已经被某些程序使用,那么您可以为 WAMP 选择其他侦听端口。去做这个 -
click WAMP icon -> Apache -> httpd.conf
click WAMP icon -> Apache -> httpd.conf
Now find listen 80
(where 80 is port number, it can be different on your system)
现在找到listen 80
(其中 80 是端口号,它在您的系统上可能不同)
Now change that to something else like 3333, you can access WAMP homepage by typing localhost:3333
or 127.0.0.1:3333
in browser's address bar.
现在将其更改为 3333 之类的其他内容,您可以通过键入localhost:3333
或127.0.0.1:3333
在浏览器的地址栏中访问 WAMP 主页。
If you want WAMP to use port 80, uninstall the program that is using port 80 and then do things stated in step 2 or you can change port in that program's setting, also check httpd.conf
file for listen [port]
line.
如果您希望 WAMP 使用端口 80,请卸载使用端口 80 的程序,然后执行步骤 2 中所述的操作,或者您可以在该程序的设置中更改端口,同时检查httpd.conf
文件中的listen [port]
行。
回答by Roy
I found something I did wrong, install the Apache and MySQL services. Click on the WAMP logo, goto Apache -> Service -> Install Service, after that Apache -> Service -> Start/Resume Service. Do the same for MySQL and it will turn green.
我发现我做错了什么,安装了 Apache 和 MySQL 服务。单击 WAMP 徽标,转到 Apache -> 服务 -> 安装服务,然后是 Apache -> 服务 -> 启动/恢复服务。对 MySQL 执行相同操作,它将变为绿色。
回答by Raaj Kanchan
I would prefer using the most easiest method.
我更喜欢使用最简单的方法。
Right click on the Wamp icon and go to
右键单击 Wamp 图标并转到
Tools > Use a port other than 8080 >
工具 > 使用 8080 以外的端口 >
Set a different port, lets say 8081 and that's it. Problem resolved.
设置一个不同的端口,比如说 8081,就是这样。问题解决了。
You are most welcome.
不用客气。
回答by user5144905
Click wamp icon :
单击 wamp 图标:
1- apache -> httpd.conf (A notepad file will be opened)
1- apache -> httpd.conf(会打开一个记事本文件)
2- Find 80
2- 找到 80
3 -Replace with 81
3 - 替换为 81
Listen 12.34.56.78:81 Listen 0.0.0.0:81 Listen [::0]:81
听 12.34.56.78:81 听 0.0.0.0:81 听 [::0]:81
4- Restart wamp services
4-重启wamp服务
!!Done
!!完毕
回答by Muhammad Shahzad
I have same issue with IIS, i uninstalled IIS. Type in run services.msc, I see "wampapache64" service was not running, when I start it using right click it give me error.
我对 IIS 有同样的问题,我卸载了 IIS。输入 run services.msc,我看到“wampapache64”服务没有运行,当我使用右键单击启动它时,它给我错误。
I just used these steps.
我只是使用了这些步骤。
Click on WAMP icon select Apache -> Service -> Remove Service
Click on Wamp icon select Apache -> Service -> Install Service
单击 WAMP 图标选择 Apache -> 服务 -> 删除服务
单击 Wamp 图标选择 Apache -> 服务 -> 安装服务
Got green Wamp icon :(
有绿色的 Wamp 图标 :(
回答by Maya Karin
CMD > netstat -ao
> look for any line like 0.0.0.0:80
and look at the PID value (e.g. 4796)
CMD >>netstat -ao
查找任何类似的行0.0.0.0:80
并查看 PID 值(例如 4796)
Open Task Manager > Processes tab > View > Select Column > Tick on PID (Process Identifier)> OK to create new column
打开任务管理器>进程选项卡>查看>选择列>勾选PID(进程标识符)>确定以创建新列
Look at the processes list in Task Manager > Sort by PID (the new column) and find the 4796to know which program is using Port 80. Mine is Bit-Torrent. After close (exit) Bit-Torrent, Wampserver should work as usual.
查看任务管理器中的进程列表 > 按 PID 排序(新列)并找到4796以了解哪个程序正在使用端口 80。我的是 Bit-Torrent。关闭(退出)Bit-Torrent 后,Wampserver 应该可以正常工作。
回答by rupi
Quit skype and right click on wamp icon-apache-services-start all services that will work after wamp server is start you can use skype again ;)
退出Skype并右键单击wamp图标-apache-services-启动wamp服务器启动后将工作的所有服务,您可以再次使用Skype;)
回答by alex351
回答by Chris Sprague
I've had the above solutions work for me on many occasions, except one; that was after I buggered up an alias file - ie a file that allows the website folder to be located in another location other than the www folder. Here's the solution:
我已经在很多场合使用了上述解决方案,除了一个;那是在我弄乱了一个别名文件之后 - 即一个允许网站文件夹位于 www 文件夹以外的其他位置的文件。这是解决方案:
- Go to c:/wamp/alias
- Cut all of the alias files and paste in a temp folder somewhere
- Restart all WAMP services
- If the WAMP icon goes green, then add each alias file back to the alias folder one by one, restart WAMP, and when WAMP doesn't start, you know that alias file has some bad data in it. So, fix that file or delete it. Your choice.
- 转到 c:/wamp/别名
- 剪切所有别名文件并粘贴到某个临时文件夹中
- 重启所有 WAMP 服务
- 如果WAMP图标变绿,则将每个别名文件一一添加回别名文件夹,重新启动WAMP,当WAMP不启动时,您知道别名文件中有一些坏数据。因此,修复该文件或删除它。你的选择。
回答by niro
Open cmdand type the command below.
打开cmd并输入下面的命令。
netstat -o -n -a | findstr 0.0:80
Last column of each row is the process identifier (PID)
每行的最后一列是进程标识符 (PID)
You can find the application that reserves port 80, using taskmanager services tab or just type tasklist
in cmd.
你可以发现储量80端口,使用任务管理器服务选项卡或直接输入应用tasklist
在CMD。
Then follow this link: http://www.ttkalec.com/blog/resolving-yellow-wamp-server-status-freeing-up-port-80-for-apache/
然后点击这个链接:http: //www.ttkalec.com/blog/resolving-yellow-wamp-server-status-freeing-up-port-80-for-apache/