【问题标题】:Apache will not start after upgrading PHP7 on Xampp在 Xampp 上升级 PHP7 后 Apache 将无法启动
【发布时间】:2017-08-12 14:52:23
【问题描述】:

我一直在尝试在 xampp 上升级到 PHP7,但是当我尝试重新启动 Apache 时,我得到了:

0:38:00  [Apache]   Attempting to start Apache app...
0:38:01  [Apache]   Status change detected: running
0:38:01  [Apache]   Status change detected: stopped
0:38:01  [Apache]   Error: Apache shutdown unexpectedly.
0:38:01  [Apache]   This may be due to a blocked port, missing dependencies, 
0:38:01  [Apache]   improper privileges, a crash, or a shutdown by another method.
0:38:01  [Apache]   Press the Logs button to view error logs and check
0:38:01  [Apache]   the Windows Event Viewer for more clues
0:38:01  [Apache]   If you need more help, copy and post this
0:38:01  [Apache]   entire log window on the forums

我已经更新了: httpd-xampp.conf 具有正确的路径和命名。但没有运气。

也试过切换端口,但没有Skype。我认为这不是端口问题,因为当我使用 php5 时一切正常。此处建议的所有内容:

Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

Apache 日志:

[Tue Mar 21 02:48:54.551995 2017] [core:notice] [pid 10852:tid 280] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Mar 21 02:48:54.987020 2017] [mpm_winnt:notice] [pid 10852:tid 280] AH00418: Parent: Created child process 10256
[Tue Mar 21 02:48:55.611056 2017] [ssl:warn] [pid 10256:tid 292] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 21 02:48:55.927074 2017] [ssl:warn] [pid 10256:tid 292] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 21 02:48:56.062081 2017] [mpm_winnt:notice] [pid 10256:tid 292] AH00354: Child: Starting 150 worker threads.

已经尝试过这里提到的解决方案: error running apache after xampp install

但也没有运气。

【问题讨论】:

  • 查看apache日志,升级后,你确定你禁用了php5 apache模块并启用了php7 apache模块吗?
  • @hassan 在上面添加了 Apache 日志。仍然没有找到解决办法。

标签: xampp php-7


【解决方案1】:

我根据本指南将 xampp php 从 5.4 升级到 7: https://www.youtube.com/watch?v=cdR8qHXpyHE

在 Apache 重启后,我得到了同样的错误。 我编辑了 httpd-xampp.conf: 更改了 php7 相关的所有 php5 内容。 然后我再次尝试启动apache。

Apache 已启动。 希望这会有所帮助!

兄弟, 莱兹

【讨论】:

    猜你喜欢
    • 2015-07-13
    • 2018-10-29
    • 2018-11-09
    • 2015-11-24
    • 2022-06-14
    • 1970-01-01
    • 2015-10-26
    • 2015-11-20
    • 2012-11-29
    相关资源
    最近更新 更多