duandong7980 2016-09-07 18:55
浏览 128
已采纳

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

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

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

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:

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.

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.

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

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**

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

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.

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?

I had also tried:

  • Rebooting the system
  • Running the WAMP Server as an administrator
  • Going to Apache > Service Administration > Install Service

Nothing has worked yet!

  • 写回答

2条回答 默认 最新

  • douji6735 2016-09-07 19:23
    关注

    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 does not come with them all installed

    --- Installation of Wampserver ---

    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.

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

    Install a new version of Wampserver:

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

    --- 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)\

    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++ Packages ---

    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 Packages (Visual C++ 2008 SP1)

    32bit from here and 64bit from here

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

    32bit from here and 64bit from here

    -- 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 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 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

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

    This is item number 20 of TROUBLESHOOTING TIPS of Wampserver:

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?