【问题标题】:Mamp won't start apache (Windows 10)Mamp 不会启动 apache(Windows 10)
【发布时间】:2018-04-02 18:13:50
【问题描述】:

本周我在我的 Windows 10 计算机上安装了 MAMP Pro,直到今天它运行良好。我重新启动计算机并立即启动 MAMP Pro - 这导致 MySQL 服务器启动,但不是 Apache。然后,我重新启动了 MAMP 并且没有服务器在运行,我检查了 MAMP 端口上是否正在运行任何其他服务,但没有。我还更改了 MAMP 中的端口,但它也不起作用。

为什么会发生这种情况?

这里是 Apache 日志:

[Sat Oct 21 04:46:43 2017] [warn] pid file C:/MAMP/bin/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

[Sat Oct 21 04:46:43 2017] [notice] Digest: generating secret for digest authentication ...

[Sat Oct 21 04:46:43 2017] [notice] Digest: done

[Sat Oct 21 04:46:44 2017] [notice] Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2e mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.1.5 

mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations

[Sat Oct 21 04:46:44 2017] [notice] Server built: May  6 2016 10:19:53

[Sat Oct 21 04:46:44 2017] [notice] Parent: Created child process 5348

[Sat Oct 21 04:46:45 2017] [notice] Digest: generating secret for digest authentication ...

[Sat Oct 21 04:46:45 2017] [notice] Digest: done

[Sat Oct 21 04:46:46 2017] [notice] Child 5348: Child process is running

[Sat Oct 21 04:46:46 2017] [notice] Child 5348: Acquired the start mutex.

[Sat Oct 21 04:46:46 2017] [notice] Child 5348: Starting 64 worker threads.

[Sat Oct 21 04:46:46 2017] [notice] Child 5348: Starting thread to listen on port 443.

[Sat Oct 21 04:46:46 2017] [notice] Child 5348: Starting thread to listen on port 443.

[Sat Oct 21 04:46:46 2017] [notice] Child 5348: Starting thread to listen on port 80.

【问题讨论】:

    标签: php windows apache windows-10 mamp


    【解决方案1】:

    一个问题可能是 apache 使用的端口被其他东西阻止了,我不记得那个端口了,但你可以很容易地查到。

    我认为 全球出版 通常使用与 apache 相同的端口,因此请取消运行它并查看它是否有效。

    我知道您说过您检查了端口,但默认情况下始终运行全球发布。所以我会检查一下。

    【讨论】:

      【解决方案2】:

      执行以下操作: MAMP -> 首选项 -> PHP。将标准版本 7.3.7 更改为 7.2.14。启动服务器。 成功后可以返回标准版7.3.7。

      【讨论】:

      • 这确实有效,谢谢!但是当我成功启动 apache 后返回 7.3.7 版本时,同样的事情发生了,它不会再次启动 apache 服务器。 :(
      【解决方案3】:

      我遇到了同样的问题,唯一能让我重新启动 Apache 服务器的方法是将 PHP 版本 更改为 7.2.14 MAMP的Preferences区域:

      MAMP > Preferences... > PHP > Standard Version > 7.2.14

      注意: 在我能够重新启动 Apache 服务器后,我尝试将 PHP 版本更改回 7.3.7,但这再次破坏了 Apache 服务器的启动过程。绿点会闪烁,然后熄灭。所以我现在将 MAMP 与 PHP 版本 7.2.14 分开(因为 PHP 的版本对我来说并不重要,只要它是 7.x 而不是 5.6.x)。

      【讨论】:

        猜你喜欢
        • 2019-09-28
        • 2016-09-28
        • 1970-01-01
        • 1970-01-01
        • 2016-09-14
        • 1970-01-01
        • 2012-07-31
        • 2020-02-06
        • 1970-01-01
        相关资源
        最近更新 更多