简体   繁体   English

Wamp64 服务器的问题

[英]Issues with Wamp64 Server

So until yesterday's Windows update I was able to run Wamp64 Server without a hitch.因此,直到昨天的 Windows 更新,我才能顺利运行 Wamp64 服务器。 However, today it gives a "1 of 2 services running" message.但是,今天它给出了“正在运行的 2 个服务中的 1 个”消息。

Investigating clarifies that MySQL 8.0.14 is running, but that Apache 2.4.23 is not.调查表明 MySQL 8.0.14 正在运行,但 Apache 2.4.23 没有运行。

Here's what I've tried so far:这是我迄今为止尝试过的:

  • Restarting the computer and rebooting Wamp重新启动计算机并重新启动 Wamp
  • Completely shutting down the computer and rebooting Wamp完全关闭计算机并重新启动 Wamp
  • Hitting "Start/Resume Service" in the Wamp menu在 Wamp 菜单中点击“启动/恢复服务”
  • Hitting "Install Service" in the Wamp menu (and then Start/Resume service)在 Wamp 菜单中点击“安装服务”(然后开始/恢复服务)
  • Hitting "Uninstall Service" and then "Install Service" in the Wamp menu (and then Start/Resume service)在 Wamp 菜单中点击“卸载服务”,然后点击“安装服务”(然后开始/恢复服务)
  • Doing both of these things and rebooting做这两件事并重新启动
  • Investigating the Apache error log:调查 Apache 错误日志:
[Fri Aug 02 18:30:25.703267 2019] [core:warn] [pid 1376:tid 620] AH00098: pid file D:/wamp64/bin/apache/apache2.4.23/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Aug 02 18:30:25.711267 2019] [auth_digest:notice] [pid 1376:tid 620] AH01757: generating secret for digest authentication ...
  • Investigating immediately before this in the log:在此之前立即在日志中进行调查:
[Thu Aug 01 18:33:16.532470 2019] [mpm_winnt:notice] [pid 22072:tid 660] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Thu Aug 01 18:33:18.849146 2019] [mpm_winnt:notice] [pid 28536:tid 588] AH00364: Child: All worker threads have exited.
[Thu Aug 01 18:33:24.784874 2019] [mpm_winnt:notice] [pid 22072:tid 660] AH00430: Parent: Child process 28536 exited successfully.
  • Google searching these errors to see if I could find anything (unfortunately relatively unsuccessful)谷歌搜索这些错误,看看我是否能找到任何东西(不幸的是相对不成功)
  • Disabling Skype (to free up Port 80) and redoing most of what's above禁用 Skype(以释放端口 80)并重做上面的大部分内容
  • Running the following commands from the administrative command line:从管理命令行运行以下命令:
apacha2.4.23\bin\httpd.exe -k install
apacha2.4.23\bin\httpd.exe -k start
apacha2.4.23\bin\httpd.exe -k wampapache64 -k start
apacha2.4.23\bin\httpd.exe -e warn

Which definitely starts the service but then immediately gives the errors about not being shut down correctly.这肯定会启动服务,但会立即给出有关未正确关闭的错误。

Any advice would be greatly appreciated, I have a large local wiki installed via Wamp and I really don't want to lose access to it.任何建议将不胜感激,我通过 Wamp 安装了一个大型本地 wiki,我真的不想失去对它的访问权限。

Other information其他信息

  • Wamp64 Wamp64
    • Wampserver 3.1.7 Wampserver 3.1.7
    • phpMyAdmin 4.8.4 phpMyAdmin 4.8.4
    • MySQL 8.0.14 MySQL 8.0.14
    • Apache 2.4.23阿帕奇 2.4.23
  • System系统
    • OS: Microsoft Windows 10 Home操作系统:Microsoft Windows 10 家庭版
    • Version: 10.0.18362 Build 18362版本:10.0.18362 内部版本 18362
    • System Type: x64系统类型:x64
    • Available Physical Memory: 11.2 GB可用物理内存:11.2 GB
    • Space Available on Disk: 19.3 GB (on C:), 115 GB (on D:, where Wamp is installed)磁盘上的可用空间:19.3 GB(在 C: 上)、115 GB(在 D: 上,安装了 Wamp)

Thanks!谢谢!

EDIT 1:编辑 1:

As suggested here is the error message the day that the issue began:正如此处所建议的,是问题开始当天的错误消息:

在此处输入图片说明

And one from today:还有今天的一篇:

在此处输入图片说明

EDIT 2:编辑2:

So in regard to a great answer below I've done the following (unfortunately still note working, but this feels like progress):所以关于下面的一个很好的答案,我做了以下(不幸的是仍然注意工作,但这感觉像是进步):

I ran the following with no errors:我运行以下没有错误:

.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k wampapache64 -k start
.\wamp64\bin\apache\apacha2.4.23\bin\httpd.exe -e warn

Next I ran:接下来我跑了:

.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k stop
The 'Apache2.4' service is not started.

.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k uninstall
Removing the 'Apache2.4' service
The 'Apache2.4' service has been removed successfully.

Then I restarted my PC.然后我重新启动了我的电脑。

Following this, I downloaded the Checks VC++ packages installed file ( check_vcredist ) from http://wampserver.aviatechno.net/#vcpackages .在此之后,我从http://wampserver.aviatechno.net/#vcpackages下载了Checks VC++ packages installed文件 ( check_vcredist )。 Running it noted that Visual C++ 2015-2019 x86 Minimum Runtime - 14.22.27821 and Visual C++ 2015-2019 x64 Minimum Runtime - 14.22.27821 were not installed, so I installed them from the same URL (VC 2015-2019 (VC16 x86) 14.22.27821 and VC 2015-2019 (VC16 x64) 12.22.27821).运行它注意到 Visual C++ 2015-2019 x86 最小运行时 - 14.22.27821 和 Visual C++ 2015-2019 x64 最小运行时 - 14.22.27821 没有安装,所以我从相同的 URL (VC 2015-2019) x64 x64 安装它们14.22.27821 和 VC 2015-2019 (VC16 x64) 12.22.27821)。

Then I restarted my PC again and ran WAMP64, which still unfortunately gives a 1 of 2 services running error.然后我再次重新启动我的电脑并运行 WAMP64,不幸的是,它仍然给出了1 of 2 services running1 of 2 services running错误。

However, I'm still getting a similar error in the log file ( apache_error.log ):但是,我仍然在日志文件 ( apache_error.log ) 中收到类似的错误:

Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 12936:tid 548] AH00098: pid file D:/wamp64/bin/apache/apache2.4.23/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Aug 22 14:47:59.335006 2019] [auth_digest:notice] [pid 12936:tid 548] AH01757: generating secret for digest authentication ...
[Thu Aug 22 14:48:34.000409 2019] [core:warn] [pid 31212:tid 584] AH00098: pid file D:/wamp64/bin/apache/apache2.4.23/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

EDIT 3:编辑 3:

Now I'm getting the following:现在我得到以下信息:

.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k wampapache64 -k start
[Thu Aug 22 15:13:02.139389 2019] [mpm_winnt:error] [pid 6824:tid 484] (OS 2)The system cannot find the file specified.  : AH00436: No installed service named "Apache2.4".
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k wampapache64 -k start
[Thu Aug 22 15:13:28.453760 2019] [mpm_winnt:error] [pid 1348:tid 488] (OS 2)The system cannot find the file specified.  : AH00436: No installed service named "Apache2.4".
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k stop
[Thu Aug 22 15:13:40.899096 2019] [mpm_winnt:error] [pid 11400:tid 164] (OS 2)The system cannot find the file specified.  : AH00436: No installed service named "Apache2.4".
.\wamp64\bin\apache\apache2.4.23\bin\httpd.exe -k uninstall
[Thu Aug 22 15:14:13.829391 2019] [mpm_winnt:error] [pid 13820:tid 468] (OS 2)The system cannot find the file specified.  : AH00436: No installed service named "Apache2.4".

Ok the first thing you should do is slow down and identify a problem before trying to fix it with a scatter gun. 好的,您应该做的第一件事就是放慢速度,找出问题,然后再尝试使用散弹枪修复它。

Not sure exactly what order you did things in, but when you did these commands 不确定执行操作的顺序是什么,但是执行这些命令时

apacha2.4.23\bin\httpd.exe -k install
apacha2.4.23\bin\httpd.exe -k start
apacha2.4.23\bin\httpd.exe -k wampapache64 -k start
apacha2.4.23\bin\httpd.exe -e warn

you definitely started to confuse the issue. 您肯定开始混淆这个问题。

This line 这条线

apacha2.4.23\bin\httpd.exe -k install

installs Apache as a service, but with the service name "Apache2.4" in other words you will now have 2 Apache services installed. 将Apache作为服务安装,但是使用服务名称“ Apache2.4”换句话说,您现在将安装2个Apache服务。 One called "Apache2.4" and one called "wampapache64" <- this one being the correctly named one for WAMPServer. 一种叫做“ Apache2.4”,另一种叫做“ wampapache64” <-这是WAMPServer的正确命名的一种。

The other problem with having done this is that the new service "Apache2.4" will have been installed with the "Autostart" property set, so it will automatically start during each boot process. 这样做的另一个问题是,新服务“ Apache2.4”将在安装时设置了“自动启动”属性,因此它将在每次引导过程中自动启动。 So ever since you did this, this version of Apache will have already been running when you tried to start WAMPServer, and of course you canno thave 2 services both using port 80, so WAMPServers version of Apache (wampapache64) will not have been able to start. 因此,自从执行此操作以来,当您尝试启动WAMPServer时,该版本的Apache将已经在运行,并且当然不能同时使用端口80来提供2个服务,因此Apache的WAMPServers版本(wampapache64)将无法运行开始。 This just might explain your "1 of 2 services running" situation 这可能可以解释您“正在运行2个服务中的1个”情况

This line 这条线

apacha2.4.23\bin\httpd.exe -k start

will start the new "Apache2.4" service. 将启动新的“ Apache2.4”服务。

These 2 line 这2条线

apacha2.4.23\bin\httpd.exe -k wampapache64 -k start
apacha2.4.23\bin\httpd.exe -e warn

should generate errors ? 应该产生错误?

So now to get back to a proper WAMPServer setup, you should stop and remove the "Apache2.4" service like so 因此,现在返回到正确的WAMPServer设置,您应该像这样停止并删除“ Apache2.4”服务

wamp64\bin\apache\apacha2.4.23\bin\httpd.exe -k stop
wamp64\bin\apache\apacha2.4.23\bin\httpd.exe -k uninstall

NOTE: all these functions are performed by the wampmanager menus by doing 注意:所有这些功能均由wampmanager菜单执行

left click wampmanager -> Apache -> Service Manager -> Remove Service

left click wampmanager -> Apache -> Service Manager -> Install Service

and it is best to stick to using those alone. 最好坚持单独使用它们。

Now restart the PC, just to be sure! 现在,请确保重启PC! And then try starting WAMPServer. 然后尝试启动WAMPServer。 Now look in the \\wamp64\\logs folder at the "apache_error.log" and also start the Event Viewer and look at that to see what errors are being generated by the WAMPServer version of Apache. 现在看在\\wamp64\\logs文件夹在“apache_error.log”,也开始在事件查看器,并期待在这看到正在阿帕奇WAMPServer版本产生什么错误。

If you report back with any errors, we can start trying to debug what actually happened after the Windows Update. 如果您报告任何错误,我们可以开始尝试调试Windows Update之后实际发生的情况。

It is always a good idea in these situations to check that you have all the MSVC Runtime libraries installed. 在这种情况下,最好检查一下是否已安装所有MSVC运行时库。 I have no idea why a Windows Upgrade would remove any of these, but lets start by checking those first. 我不知道为什么Windows升级会删除所有这些,但让我们先检查一下。

So download "Checks VC++ packages installed" utility which can be found near the bottom of the WAMPServer Backup Repo If you already have downloaded this tool in the past, download it again, it changes as new MSVC Runtimes are released, so it is always better to get the latest greatest version. 因此,请下载“检查已安装的VC ++程序包”实用程序,该实用程序可以在WAMPServer Backup Repo的底部找到。如果您以前已经下载过此工具,请再次下载它,它会随着新的MSVC运行时的发布而变化,因此总是更好以获得最新的最佳版本。

This is the weirdest thing and I DO NOT recommend this in any way whatsoever... But this got it to work. 这是最奇怪的事情,无论如何我都不建议这样做。

I copied my entire WAMP folder. 我复制了整个WAMP文件夹。 Then I uninstalled in the original folder. 然后我在原始文件夹中卸载了。 Then I copied in all of the MySQL 8.0.14 stuff, reinstalled MySQL 8.0.14. 然后,我复制了所有MySQL 8.0.14的内容,然后重新安装了MySQL 8.0.14。 And... It worked. 而且...有效。 I just had to switch the service to 8.0.14 in the WAMP menu and it took right off. 我只需要在WAMP菜单中将服务切换到8.0.14,就可以了。

I don't know why this worked or how it worked, but it did and the second it did, I immediately SQL dumped my full database and I'm migrating to a different, non-WAMP platform. 我不知道它为什么工作或如何工作,但是它确实起作用了,第二次它起作用了,我立即用SQL转储了我的完整数据库,然后迁移到另一个非WAMP平台。 I'm extremely sorry that I cannot provide details on what exactly happened. 非常抱歉,我无法提供确切情况的详细信息。 But, I am accepting RiggsFolly's answer because I think what he recommended would work in most cases. 但是,我接受RiggsFolly的回答,因为我认为他的建议在大多数情况下都是可行的。

Had accidently clicked PHP 7.2 "Unclean shutdown of previous Apache run?"是否不小心点击了 PHP 7.2“之前运行的 Apache 的异常关闭?”

Clicked WAMP -> PHP -> VERSION -> 7.3单击 WAMP -> PHP -> 版本 -> 7.3

Booted right up.直接开机。 The PHP 7.3 modules can't go back to 7.2 and causes Apache to die. PHP 7.3 模块无法回到 7.2 并导致 Apache 死亡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到Wamp64的任何文档 - Can't find any documentation for Wamp64 WAMP64 SSL用于file_get_contents - WAMP64 ssl for file_get_contents 无法完全删除/卸载wamp64文件 - Can't completely remove/uninstall wamp64 files Wamp64 不在页面之间持久化 session,每次页面更改都会生成一个新的 session - Wamp64 not persisting session between pages, each page change generates a new session *** 错误 *** PHP 配置加载文件是:c:/wamp64/bin/php/php8.1.0/php.ini - 应该是:c:/wamp64/bin/apache/apache2.4.53.1/bin /php.ini - *** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/php/php8.1.0/php.ini - should be: c:/wamp64/bin/apache/apache2.4.53.1/bin/php.ini 无法在 Windows 7 64 位中启动 Wamp 服务器 - Unable to start Wamp server in Windows 7 64 bit &#39;c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll&#39;-%1不是有效的win32应用程序 - 'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' - %1 is not a valid win32 application 如何在Wamp服务器(Windows 7-x64)上安装ffmpeg - How install ffmpeg on wamp server (windows 7 - x64) Wamp Server无法在Windows 10 64位中启动 - Wamp Server not starting in Windows 10 64-bit 在 wamp 服务器 64 上使用 codeigniter 的控制器出现 404 错误 - getting 404 error with codeigniter's controllers on wamp server 64
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM