【问题标题】:XAMPP on windows. Apache Shutdown Unexpectedly. Apache not startingWindows 上的 XAMPP。 Apache 意外关闭。阿帕奇没有启动
【发布时间】:2016-04-15 14:25:24
【问题描述】:

这是端口已被其他应用程序使用的常见问题。但是我已经从 Skype 纠正了它使用端口 80 和 443 的问题。但我不确定还有什么应用程序可能会阻止 apache 运行。

这是错误日志

Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash or a shutdown by another method.
Press the Logs button to view error logs and check.
the Windows Event Viewer for more clues.
IF you need more help,
copy and post this entire log window in the forum

我已经检查了错误日志文件。如果有人能向我解释这个问题,那就太好了。我是使用 xampp 的新手

[Mon Jan 11 15:41:31.711045 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:33.542795 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:37.708844 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00455: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15 configured -- resuming normal operations
[Mon Jan 11 15:41:37.709343 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00456: Apache Lounge VC11 Server built: Oct 13 2015 10:54:13
[Mon Jan 11 15:41:37.709343 2016] [core:notice] [pid 6344:tid 768] AH00094: Command line: 'D:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Mon Jan 11 15:41:37.963876 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00418: Parent: Created child process 5008
[Mon Jan 11 15:41:44.877326 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.246564 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.644423 2016] [mpm_winnt:notice] [pid 5008:tid 688] AH00354: Child: Starting 150 worker threads.

【问题讨论】:

  • 你使用的是哪个版本的xampp..
  • xampp 中的 netstat 显示 httpd.exe 正在使用端口 80 和 443
  • 先把你的帖子But I am noy编辑成But I am not

标签: php windows apache xampp


【解决方案1】:

如果您阅读来自 Apache 的消息,很明显您已尝试激活 SSL,但您所做的事情存在问题。

我认为来自 XAMPP 的这部分错误消息最相关a crash or a shutdown by another method.

假设您通过取消注释 httpd.conf 中的 Include conf/extra/httpd-ssl.conf 行来做到这一点,然后只需再次注释掉该行,然后尝试修复您的 SSL 配置。

按照错误消息的建议,查看 Windows 事件查看器。 Apache 在那里写入以及它的日志文件。有时事件查看器中显示的错误非常具有描述性,并且会在存在错误的配置文件中识别行号

RE 你的评论:

我以前在我的系统上安装了 xamp。我已经删除了xampp的源文件夹并重新安装了xampp

可能由于您没有卸载旧版本的 XAMPP,旧版本中的某些内容仍然在您的系统中注册,这就是导致这种奇怪情况的原因。

我会(正确地)卸载此 XAMPP,然后检查您是否仍然注册了 Apache 和/或 MYSQL 服务,使用服务管理单元查看。

如果它们仍然存在,您可以像这样删除它们(sc delete):-

Start command window using "Run as Administrator"
sc delete MYSQL
sc delete Apache

确保您已经备份了所有数据库,尽管这样做可能已经为时已晚。

然后你可以重新安装你想使用的XAMPP版本。

【讨论】:

  • 是的,Include conf/extra/httpd-ssl.conf 行没有被注释,我也没有被注释掉。默认情况下它就在那里。你建议评论那条线吗?以及如何在 Windows 中使用事件查看器?
  • 是的,如果您注释掉该行,那么您可能能够再次重新启动 Apache。这是新安装的 XAMPP 吗?
  • 我已经评论了这条线,但没有运气。这是 xampp 的全新安装。我最近从 www.apachefriends.org/index.html 下载了
  • 您确定您的系统上没有其他 Apache 吗?在找到 XAMPP 之前,您是否尝试过手动安装 Apache/MySQL/PHP?
  • 不,我没有安装 Apache/MySQL/PHP 任何东西,但我之前在我的系统上安装了 xamp。我已经删除了xampp的源文件夹并重新安装了xampp。这可能是apache冲突的原因吗? ?
猜你喜欢
  • 1970-01-01
  • 2011-10-25
  • 1970-01-01
  • 1970-01-01
  • 2021-06-28
  • 2022-01-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多