简体   繁体   English

wampserver不会变绿 - 保持橙色

[英]wampserver doesn't go green - stays orange

I am trying to install wampserver on a win7-32bit. 我正在尝试在win7-32​​bit上安装wampserver。 The installation goes smoothly but the icon doesn't turn green. 安装顺利,但图标不会变为绿色。 It stays orange saying "Server online". 它保持橙色,说“服务器在线”。 I've trying different solutions nothing worked: -changed apache port to 8080. -turn off IIS and other stuff - even tried to instal xampp server but that didn't work either. 我尝试了不同的解决方案没有任何效果: - 将apache端口更改为8080.-关闭IIS和其他东西 - 甚至尝试安装xampp服务器,但这也无效。

What else is there to do? 还需要做什么? Thanks. 谢谢。

I have had this issue before and it turned out that Skype was interferring with port 80. So you may have to look at your system to see if you have another application utilizing this port. 我之前遇到过这个问题,结果发现Skype正在干扰端口80.所以你可能需要查看你的系统,看看你是否有另一个使用这个端口的应用程序。

Anyway under Skype, to change this setting it was: Tools->Options->Advanced->Connection->Use port 80 and 443 as alternatives for incoming connections . 无论如何,在Skype下,要更改此设置,请执行以下操作: Tools->Options->Advanced->Connection->Use port 80 and 443 as alternatives for incoming connections Untick this, restart Skype, restart wamp. 解开这个,重启Skype,重启wamp。

Related question 相关问题

If you install WAMPServer before you install the C++ Redistributable, it won't work even after you've installed it because you will miss a critical step in the installation where you tell Windows Firewall to let Apache run. 如果在安装C ++ Redistributable之前安装WAMPServer,即使在安装它之后它也无法工作,因为您将错过安装中告知Windows防火墙让Apache运行的关键步骤。

  1. Uninstall WAMP by running the unins file in the wamp directory 通过运行wamp目录中的unins文件来卸载WAMP
  2. Download and install the vbasic package here [http://www.microsoft.com/en-us/download/details.aspx?id=8328] 在此处下载并安装vbasic软件包[http://www.microsoft.com/en-us/download/details.aspx?id=8328]
  3. Restart your computer 重启你的电脑
  4. Install WAMP again. 再次安装WAMP。 You should see a message with a purple feather telling you to allow access. 您应该看到一条带有紫色羽毛的消息,告诉您允许访问。 Do so, and you should be all good 这样做,你应该都很好

the cause could be a variety of reasons. 原因可能有多种原因。 It might not show up in the log files. 它可能不会显示在日志文件中。 I had the case where the log showed Apache started, then all threads shut down, and absolutely no explanation why. 我有一个案例,其中日志显示Apache启动,然后所有线程关闭,绝对没有解释原因。 Here's a tip for solving this problem everybody seems to have missed. 这是一个解决这个问题的小窍门,似乎每个人都错过了。 The log file should show the full command line used to start apache, something like: 日志文件应显示用于启动apache的完整命令行,如:

httpd -d C:/wamp/bin/apache/apache2.4.9

Do this: open a cmd window, cd to the apache bin directory, and run the command manually: 这样做:打开cmd窗口,cd到apache bin目录,然后手动运行命令:

c:\> cd C:\wamp\bin\apache\apache2.4.9\bin
C:\wamp\bin\apache\apache2.4.9\bin> httpd -d C:/wamp/bin/apache/apache2.4.9

It blurted out the error stright away; 它脱口而出了错误; problem solved in 5 minutes: 问题在5分钟内解决:

AH00526: Syntax error on line 609 of C:/wamp/bin/apache/apache2.4.9/conf/httpd.conf:
CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" or "expr=" clause (see docs)

this happened due to a syntax error I put in 'httpd.conf' while trying to make my wampserver multi-homed. 这是因为我在尝试使我的wampserver多宿主时输入'httpd.conf'时出现语法错误。 But why didn't the apache people write this in the log file? 但为什么apache人没有在日志文件中写这个?

click WAMP icon -> Apache -> httpd.conf and find listen 80

new versions of WAMP uses 新版WAMP使用

Listen 0.0.0.0:80 听0.0.0.0:80
Listen [::0]:80 听[:: 0]:80

ServerName localhost:80 ServerName localhost:80

Change Port Number as you want, like 根据需要更改端口号

Listen 0.0.0.0:81 听0.0.0.0:81
Listen [::0]:81 听[:: 0]:81

ServerName localhost:81 ServerName localhost:81

and now restart Wamp, thats it 现在重启Wamp,就是这样

and in web browser type as 并在Web浏览器中输入为

http://localhost:81 HTTP://本地主机:81

Happy Coding.. 快乐编码..

After trying all the other solutions posted here (Skype, updates to C++ Redistributable), I found that another process was using port 80. The culprit was Microsoft Internet Information Server (IIS). 在尝试了这里发布的所有其他解决方案(Skype,C ++ Redistributable的更新)之后,我发现另一个进程正在使用端口80.罪魁祸首是Microsoft Internet Information Server(IIS)。 You can stop the service from the command line on Windows 7/Vista: 您可以在Windows 7 / Vista上从命令行停止服务:

net stop was /y

Or set the service to not start automatically by going to Services: click Start, click Control Panel, click Performance and Maintenance, click Administrative Tools, and then double-click Services. 或者通过转到“服务”将服务设置为不自动启动:依次单击“开始”,“控制面板”,“性能和维护”,“管理工具”,然后双击“服务”。 There, locate "WAS Service" and "World Wide Web Publication Service" and set them to manual or deactivate them completely. 在那里,找到“WAS服务”和“万维网发布服务”并将它们设置为手动或完全停用它们。

Then restart the WAMP server. 然后重启WAMP服务器。

More info: http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/ 更多信息: http//www.sitepoint.com/unblock-port-80-on-windows-run-apache/

但如果它没有解决问题,你可能已经安装了sql 2008 R2,所以对我有用的解决方案是这个wamp服务器问题黄色符号

Also in device manager, first click "show all processes", put a stop to HTTP 同样在设备管理器中,首先单击“显示所有进程”,停止HTTP

After this fix I got an IIS page issue on localhost which got solved when we did the step below: 在此修复之后,我在localhost上遇到了一个IIS页面问题,当我们执行以下步骤时,它已得到解决:
Check your hosts file in the C:\\Windows\\System32\\Drivers\\etc\\ folder, if entry 127.0.0.1 localhost is commented then uncomment it by removing the # in front of that line. 检查C:\\ Windows \\ System32 \\ Drivers \\ etc \\文件夹中的hosts文件,如果注释了127.0.0.1 localhost则通过删除该行前面的#取消注释。

WAMP Server may turn orange for various reason as it is not working. WAMP服务器可能由于各种原因而变为橙色,因为它不起作用。 This is also a another type of issue. 这也是另一类问题。 that can be due to webservices is running in services.msc This is explained in the below blog. 这可能是因为webservices正在services.msc中运行。这在下面的博客中有解释。 Please try it. 请试一试。 How to resolve HTTP Error 404 and launch localhost with WAMP Server for PHP & MySql? 如何解决HTTP错误404并使用WAMP Server for PHP和MySql启动localhost?

Make a Ctrl+Alt+Suppr in order to see if no other Apache version is ever runing on your computer. 制作一个Ctrl + Alt + Suppr,以查看您的计算机上是否还没有运行其他Apache版本。 It was the case for me, I just stop them and the light pass green! 对我来说就是这样,我只是阻止他们,光线透过绿色!

Cheers! 干杯!

I'm sure others have found this, but if you are using a workstation that has built in software that utilizes port 80 and are NOT authorized to remove it, changing which port your wampserver runs is another easy solution. 我确信其他人已经找到了这个,但是如果你使用的是内置软件的工作站,它使用端口80并且没有被授权删除它,那么更改你的wampserver运行的端口是另一个简单的解决方案。 This person nails the answer here: https://stackoverflow.com/a/18713963/2480714 这个人在这里指出了答案: https//stackoverflow.com/a/18713963/2480714

My problem was not related to skype as i didn't had it installed. 我的问题与skype无关,因为我没有安装它。 The solution I found was that 2 .dll files(msvcp110.dll, msvcr110.dll) were missing from the directory : 我发现的解决方案是目录中缺少2 .dll文件(msvcp110.dll,msvcr110.dll):

C:\wamp\bin\apache\apache2.4.9\bin

So I copied these 2 files to all these locations just in case and restarted wamp it worked 所以我将这两个文件复制到所有这些位置以防万一,并重新启动wamp工作

C:\wamp
C:\wamp\bin\apache\apache2.4.9\bin
C:\wamp\bin\apache\apache2.4.9
C:\wamp\bin\mysql\mysql5.6.17
C:\wamp\bin\php\php5.5.12

I hope this helps someone out. 我希望这可以帮助别人。

you can run appache: 你可以运行appache:

E:\wamp\bin\apache\apache2.4.9\bin\httpd.exe -d E:/wamp/bin/apache/apache2.4.9

after that see the log of error and solve it. 之后,看到错误的日志并解决它。

Update 2017- Wamp version 3.0.6 更新2017- Wamp 3.0.6版

If you have Installed VC redist from Microsoft but still your wamp icon is orange then it could be a conflict caused by Skype for port #80. 如果您已从Microsoft安装VC redist但仍然是您的wamp图标为橙色,那么它可能是Skype为端口#80引起的冲突。

You will need to change port number as explained below. 您需要更改端口号,如下所述。

Right click on Wamp--> tool--> apache section-->use a port other than 80 右键单击Wamp - >工具 - > apache部分 - >使用80以外的端口

在此输入图像描述

Now listen to 现在听

http://localhost:7080/phpmyadmin/ HTTP://本地主机:7080 / phpMyAdmin的/

If you can't start Wamp anymore right after a Windows update, this is often caused because of Windows that has automatically re-turned on the World Wide Web Publishing Service. 如果在Windows更新后无法再启动Wamp,则通常是因为Windows已自动重新启动万维网发布服务。

To solve: Click on Start, type Services, click Services, find World Wide Web Publishing Service, double click it, set Startup type to Disabled and click Stop button, OK this dialog and try to restart Wamp. 要解决:单击开始,键入服务,单击服务,找到万维网发布服务,双击它,将启动类型设置为已禁用,然后单击停止按钮,确定此对话框并尝试重新启动Wamp。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM