Windows 10(64位)上的WAMPserver 3.0.4:Apache服务器(httpd服务)未启动

时间:2016-09-07 18:55:11

标签: php apache wamp wampserver

我最近在Windows 10 64位操作系统上安装了WAMPserver 3.0.4 x64位。

问题: Apache服务器(2.4.18)未启动以下错误消息:

Could not execute menu item (internal error)
[Exception] Could not perform service action:
The service did not respond to the start or control request in a timely fashion

之前在stackoverflow上提出了类似的问题,但在那里发布的决议对我的情况没有帮助。 (我已经提到了下面的细节)。

诊断

第1步: 测试端口80,因为我的Apache服务器正在使用这个。以下是测试返回的内容:

***** Test which uses port 80 *****



===== Tested by command netstat filtered on port 80 =====




Test for TCP Port 80 is not found associated with TCP protocol

Port 80 is not found associated with TCP protocol



===== Tested by attempting to open a socket on port 80 =====


Your port 80 is not actually used.

第2步: 尽管结果显示端口80不是问题,但我尝试将端口号从80更改为8080。 仍然收到同样的错误。测试显示端口8080也未被使用。 因此,问题显然不在于端口号。

第3步: 通过WAMP服务器菜单将PHP版本从5.6更改为7。这没有产生任何不同的结果。

第4步: 根据前一次讨论中对同一错误的最多投票建议,我在cmd提示符下输入了'httpd -e debug': (链接到上一个讨论:wamp server does not start: Windows 7, 64Bit

C:\wamp64\bin\apache\apache2.4.18\bin>**httpd -e debug**

在短暂执行脚本后,该过程挂断了。我列出了最近出现的3个陈述:

[Wed Sep 07 19:57:35.680559 2016] [so:debug] [pid 8496:tid 428] mod_so.c(266): AH01575: loaded module userdir_module from C:/wamp64/bin/apache/apache2.4.18/modules/mod_userdir.so
[Wed Sep 07 19:57:35.691570 2016] [so:debug] [pid 8496:tid 428] mod_so.c(266): AH01575: loaded module vhost_alias_module from C:/wamp64/bin/apache/apache2.4.18/modules/mod_vhost_alias.so
[Wed Sep 07 19:57:35.712582 2016] [so:debug] [pid 8496:tid 428] mod_so.c(266): AH01575: loaded module php7_module from C:/wamp64/bin/php/php7.0.4/php7apache2_4.dll

最后一个说php4_module是从中加载的 /wamp64/bin/php/php7.0.4/php7apache2_4.dll 在冻结命令提示符之前。

这是前面讨论中提到的罪魁祸首。 我认为这也一定是我案件中的罪魁祸首。

第5步: 从中下载文件php7apache2_4.dll https://bugs.php.net/bug.php?id=69801 并将其放在我的/wamp64/bin/php/php7.0.4/位置

错误仍然存​​在,我不知道还能做什么?

我也曾尝试过:

  • 重新启动系统
  • 以管理员身份运行WAMP服务器
  • 转到Apache>服务管理>安装服务

还没有任何效果!

2 个答案:

答案 0 :(得分:5)

您是否阅读了安装过程中显示的对话框,确保安装了完整的Microsoft C / C ++运行时库。

Windows 10并未附带全部安装

---安装Wampserver ---

在继续安装Wampserver之前,必须确保系统上安装了某些元素,否则Wampserver将无法运行,此外,安装将出现故障,您需要在安装元素之前删除Wampserver失踪了。     确保在可再发行软件包VC9,VC10,VC11,VC13和VC14中“最新”     请参阅下面的--- Visual C ++包。

---不要在现有版本上安装Wampserver,请遵循以下建议:

Install a new version of Wampserver:

如果您在现有版本上安装Wampserver,不仅它不起作用,而且您可能会丢失现有数据库。

---将Wampserver安装在磁盘根目录下的文件夹中,例如C:\wampD:\wamp。采取不包含空格或变音符号的安装路径;     因此,请勿在{{1​​}}或c:\Program Files\

中安装

我们必须在安装,禁用或关闭某些应用程序之前: - 关闭Skype或强制不使用端口80   Wampserver TROUBLESHOOTING TIPS:

的第04项

如果没有这些先决条件,请按取消按钮取消安装,然后应用先决条件并重新开始安装。

--- Visual C ++包---

即使您只使用带有VC11的Apache和PHP版本,Wampserver 2.4,2.5和3.0也需要MSVC运行时库VC9,VC10,VC11。运行时VC13,VC14是PHP 7和Apache 2.4.17

所必需的

- VC9包(Visual C ++ 2008 SP1)

32bit from here64bit from here

- VC10包(Visual C ++ 2010 SP1)

32bit from here 和  64bit from here

- VC11包(Visual C ++ 2012 Update 4) 要下载的两个文件VSU4 \ vcredist_x86.exe和VSU4 \ vcredist_x64.exe位于同一页面上:32bit and 64bit

- VC13包](Visual C ++ 2013 [] 要下载的两个文件VSU4 \ vcredist_x86.exe和VSU4 \ vcredist_x64.exe位于同一页面上:32bit and 64bit

- VC14包(Visual C ++ 2015) 要下载的两个文件vcredist_x86.exe和vcredist_x64.exe位于同一页面上:32bit and 64bit

如果您有 64位Windows ,则必须安装32位和64位版本,即使您不使用Wampserver 64位。

这是TROUBLESHOOTING TIPS of Wampserver:

的第20项

ALSO 记住你必须安装WAMPServer“作为管理员”并以这种方式运行。

答案 1 :(得分:0)

更新:有人建议我检查Visual Studio的Visual C ++ Redistributable的最新版本。 我安装了最新的 microsoft.com/en-us/download/details.aspx?id=48145 这解决了我的问题。 感谢那些花时间试图回答我的问题的人。

相关问题