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

查看:106
本文介绍了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上曾提出过类似的问题,但此处发布的解决方案对我的情况没有帮助. (我在下面提到了细节).

Similar Question was raised before on stackoverflow, but the resolutions posted there didn't help in my case. (I've mentioned the details below).

诊断 :

Diagnosis:

第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.dll https://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 Server
  • 转到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或强制不使用端口80 Wampserver疑难解答提示的编号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:

  • Disable IIS Item No. 08 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 Update 4) 要下载的两个文件VSU4 \ vcredist_x86.exe和VSU4 \ vcredist_x64.exe在同一页上:

-- 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在同一页上:

-- 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 ,则即使您不使用64位的Wampserver,也必须同时安装32位和64位版本.

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:

ALSO 请记住,您必须以管理员身份"安装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天全站免登陆