Mamp不会启动apache(Windows 10)

时间:2017-10-21 21:33:07

标签: php windows apache windows-10 mamp

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

为什么会发生这种情况?

以下是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.

3 个答案:

答案 0 :(得分:6)

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

答案 1 :(得分:1)

我也遇到了同样的问题,让我重新启动Apache服务器的唯一可行的方法就是将Windows XP中的 PHP版本更改为 7.2.14 。 MAMP的首选项区域:

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)。

答案 2 :(得分:0)

问题可能是apache使用的端口被其他东西阻止了,我无法记住该端口,但你可以很容易地查看它。

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

我知道你说你检查了端口但是默认情况下全局发布总是在运行。所以我要检查一下。

相关问题