[英]Mamp won't start apache (Windows 10)
本周我在我的 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.
执行以下操作:MAMP -> 首选项 -> PHP。 将标准版本 7.3.7 更改为 7.2.14。 启动服务器。 成功后即可返回标准版7.3.7。
我遇到了同样的问题,唯一能让我重新启动 Apache 服务器的方法是在 MAMP 的首选项区域中将PHP 版本更改为7.2.14 :
MAMP > Preferences... > PHP > Standard Version > 7.2.14
注意:在我能够再次启动 Apache 服务器后,我尝试将 PHP 版本更改回 7.3.7,但这再次破坏了 Apache 服务器启动过程。 绿点会闪烁,然后熄灭。 因此,我现在将使用 PHP 版本 7.2.14 离开 MAMP(因为 PHP 的版本对我来说并不重要,只要它是 7.x 而不是 5.6.x)。
一个问题可能是 apache 使用的端口被其他东西阻塞了,我不记得那个端口,但你可以很容易地查到它。
我认为全球出版通常使用与 apache 相同的端口,所以不要运行它,看看它是否有效。
我知道您说过您检查了端口,但默认情况下全球发布始终在运行。 所以我会检查一下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.