Windows 10(64 位)上的 WAMPserver 3.0.4:Apache 服务器(httpd 服务)未启动 [英] WAMPserver 3.0.4 on Windows 10 (64 bit): Apache server (httpd service) did not start

查看:26
本文介绍了Windows 10(64 位)上的 WAMPserver 3.0.4:Apache 服务器(httpd 服务)未启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I recently installed WAMPserver 3.0.4 x64 bit on my Windows 10 64 bit OS.

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

Issue: Apache server (2.4.18) did not start with the following error message:

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 服务器正在使用这个端口.这是测试返回的内容:

Step 1: Tested port 80, since my Apache server was using this one. Here is what the test returned:

***** 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 也没有被使用.因此,问题显然不在于端口号.

Step 2: Even though the result showed that Port 80 was not an issue, I tried to change port number from 80 to 8080. Still received the same error. The test showed that Port 8080 was not being used either. So, the issue is clearly not with the Port number.

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

Step 3: Changed the PHP version from 5.6 to 7 through the WAMP server menu. This didn't produce any different result.

第 4 步:根据之前讨论中对同一错误投票最多的建议,我在 cmd 提示符下输入了httpd -e debug":(链接到之前的讨论:wamp 服务器无法启动:Windows 7, 64Bit)

Step 4: As per the most voted suggestion on the same error on a previous discussion, I typed 'httpd -e debug' on the cmd prompt: (link to previous discussion: wamp server does not start: Windows 7, 64Bit)

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

在执行了一小会儿脚本后,进程挂了.我列出了最近出现的 3 条语句:

After executing the script for a brief moment, the process hung up. I am listing the last 3 statements that showed up:

[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

最后一个说php7_module是从/wamp64/bin/php/php7.0.4/php7apache2_4.dll在冻结命令提示符之前.

The last one says that php7_module was loaded from /wamp64/bin/php/php7.0.4/php7apache2_4.dll before freezing the command prompt.

这与前面讨论中提到的罪魁祸首是同一个文件.我认为这也一定是我案件的罪魁祸首.

This was the same file mentioned as the culprit in the earlier discussion. I thought that this must be the culprit in my case as well.

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

Step 5: Downloaded the file php7apache2_4.dll from https://bugs.php.net/bug.php?id=69801 and put it in my /wamp64/bin/php/php7.0.4/ location

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

The error still persists and I am not sure what else to do?

我也试过:

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

还没有任何效果!

推荐答案

您是否阅读了作为安装一部分显示的关于确保安装了全套 Microsoft C/C++ 运行时库的对话框.

Did you read the dialog that is shown as part of the install about making sure you have the full set of Microsoft C/C++ Runtime libraries installed.

Windows 10 并未全部安装

Windows 10 does not come with them all installed

--- Wampserver的安装---

--- Installation of Wampserver ---

在继续安装Wampserver之前,您必须确保您的系统上安装了某些元素,否则Wampserver绝对不会运行,并且安装会出错,您需要在安装Wampserver之前删除Wampserver失踪了.确保您在可再发行包 VC9、VC10、VC11、VC13 和 VC14 中处于最新状态"请参阅下面的 --- Visual C++ 包.

BEFORE proceeding with the installation of Wampserver, you must ensure that certain elements are installed on your system, otherwise Wampserver will absolutely not run, and in addition, the installation will be faulty and you need to remove Wampserver BEFORE installing the elements that were missing. Make sure you are "up to date" in the redistributable packages VC9, VC10, VC11, VC13 and VC14 See --- Visual C++ Packages below.

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

--- Do not install Wampserver OVER an existing version, follow the advice:

安装新版本的 Wampserver:

如果您在现有版本上安装 Wampserver,不仅无法正常工作,而且您可能会丢失现有数据库.

If you install Wampserver over an existing version, not only it will not work, but you risk losing your existing databases.

--- 在磁盘根目录的文件夹中安装 Wampserver,例如 C:\wampD:\wamp.选择不包含空格或变音符号的安装路径;因此,没有安装在 c:\Program Files\C:\Program Files (x86)\

--- Install Wampserver in a folder at the root of a disk, for example C:\wamp or D:\wamp. Take an installation path that does not include spaces or diacritics; Therefore, no installation in c:\Program Files\ or C:\Program Files (x86)\

我们必须在安装、禁用或关闭某些应用程序之前:- 关闭 Skype 或强制不使用端口 80Wampserver 故障排除提示的第 04 项:

We must BEFORE installing, disable or close some applications: - Close Skype or force not to use port 80 Item No. 04 of the Wampserver TROUBLESHOOTING TIPS:

如果这些先决条件没有到位,请按取消按钮取消安装,然后应用先决条件并重新启动安装.

If these prerequisites are not in place, Press the Cancel button to cancel the installation, then apply the prerequisites and restart the installation.

--- Visual C++ 包---

--- Visual C++ Packages ---

Wampserver 2.4、2.5 和 3.0 需要 MSVC 运行时库 VC9、VC10、VC11,即使您仅将 Apache 和 PHP 版本与 VC11 一起使用.PHP 7 和 Apache 2.4.17 需要运行时 VC13、VC14

The MSVC runtime libraries VC9, VC10, VC11 are required for Wampserver 2.4, 2.5 and 3.0, even if you use only Apache and PHP versions with VC11. Runtimes VC13, VC14 is required for PHP 7 and Apache 2.4.17

-- VC9 包 (Visual C++ 2008 SP1)

-- VC9 Packages (Visual C++ 2008 SP1)

此处为 32 位64 位来自这里

-- VC10 包 (Visual C++ 2010 SP1)

-- VC10 Packages (Visual C++ 2010 SP1)

来自此处的 32 位64 位来自这里

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

-- VC11 Packages (Visual C++ 2012 Update 4) The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page: 32bit and 64bit

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

-- VC13 Packages] (Visual C++ 2013[) The two files VSU4\vcredist_x86.exe and VSU4\vcredist_x64.exe to be download are on the same page: 32bit and 64bit

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

-- VC14 Packages (Visual C++ 2015) The two files vcredist_x86.exe and vcredist_x64.exe to be download are on the same page: 32bit and 64bit

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

If you have a 64-bit Windows, you must install both 32 and 64bit versions, even if you do not use Wampserver 64 bit.

这是 Wampserver 的故障排除提示的第 20 项:

请记住,您必须以管理员身份"安装 WAMPServer 并以这种方式运行它.

ALSO remember you must install WAMPServer "As an Administator" and also run it that way.

这篇关于Windows 10(64 位)上的 WAMPserver 3.0.4:Apache 服务器(httpd 服务)未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆