问题描述
我刚刚在我的 WIN 8 机器上安装了 WAMPSERVER (Apache/2.4.9 (Win64) ),当试图启动它时,它的图标总是红色/橙色(不是绿色).在尝试运行服务时,我看到以下错误消息:
I have just installed WAMPSERVER (Apache/2.4.9 (Win64) ) on my WIN 8 machine and when tried to start it, its icon is always RED / orange ( not green ). From services when tried to run the service I see following error message:
从偶数日志中,我看到以下多个错误
From the even log, I see following multiple errors
The wampapache64 service terminated with the following service-specific error:
Incorrect function.
The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80
The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80
The Apache service named reported the following error:
>>> AH00015: Unable to open logs
The Apache service named reported the following error:
>>> AH00451: no listening sockets available, shutting down
The wampapache64 service terminated with the following service-specific error:
Incorrect function.
The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80.
推荐答案
好吧,我想通了:我机器的端口 80 正在被 IIS 使用,而不是被 Skype 使用.我是这样发现的:
Okay, I figured out: my machine's port 80 was being used by IIS, not by Skype. Here is how I found that:
左键单击 WAMPManager 图标以显示菜单.单击 Apache ► 服务 ► 测试端口 80.这将启动一个命令窗口并显示一些有关使用端口 80 的信息(如果有的话).您可以在 找到更多详细信息http://forum.wampserver.com/read.php?2,122527.
Left-click the WAMPManager icon to reveal the menu. Click Apache ► Service ► Test port 80.This will launch a command window and display some information about what, if anything is using port 80. You can find more details at http://forum.wampserver.com/read.php?2,122527.
配置 Apache 以侦听不同的端口
因为我想继续在端口 80 上运行 IIS,所以我决定在不同的端口上运行我的 WAMP 服务器.所以我是这样做的.
Configure Apache to listen on different port
Since I wanted to keep running IIS on the port 80, I decided to run my WAMP Server on a different port. So here is how I did it.
我必须更改 http.conf
文件,在我的情况下该文件位于 C:/WAMP/bin/apache/apache2.4.9/conf/
文件夹中.打开它(例如使用记事本)并搜索 80
.我不得不在不同的地方更改以下三行:
I had to change http.conf
file which in my case is in folder C:/WAMP/bin/apache/apache2.4.9/conf/
. Open it (with Notepad for example) and search for 80
. I had to change the following three lines on different places:
Listen 0.0.0.0:80 # Changed to Listen 0.0.0.0:81
Listen [::0]:80 # Changed to Listen [::0]:81
ServerName localhost:80 # Changed toServerName localhost:81
现在我在 Windows 8 上获得了 WAMP 服务器的绿色图标.
Now I have got the green icon of WAMP Server on Windows 8.
有关 http://forum.wampserver.com/read.php?2,13744.
这篇关于Windows 8 上的 WAMPSERVER 无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!