Mamp无法启动apache(Windows 10)

4

本周我在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.
3个回答

18

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


1
这确实有效,谢谢!但当我成功启动apache后返回到7.3.7版本时,同样的事情发生了,它无法再次启动apache服务器。:( - Jentan Bernardus

1
我遇到了同样的问题,唯一能让Apache服务器重新启动的方法是在MAMP的首选项区域更改PHP版本7.2.14

MAMP > 首选项... > PHP > 标准版本 > 7.2.14

注意:在我成功让Apache服务器重新启动之后,我试图将PHP版本改回7.3.7,但这又导致Apache服务器启动失败。绿色点会闪烁一下,然后消失。因此,我现在将MAMP保留在PHP版本7.2.14(只要它是7.x而不是5.6.x,对我来说版本不重要)。

0
可能的问题是Apache使用的端口被其他某个东西阻塞了,我记不清那个端口,但你可以轻松地查找一下。
我认为全球出版通常使用与Apache相同的端口,因此停止运行它并查看是否有效。
我知道你说过检查了端口,但全球出版总是默认运行的。所以我建议你再次检查一下。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接