【问题标题】:MAMP: Apache Server is shut down automatically in Windows 10MAMP:Apache 服务器在 Windows 10 中自动关闭
【发布时间】:2020-01-18 03:02:43
【问题描述】:

操作系统Windows 10
MAMP4.1.1

安装后,每次我运行程序时,Apache 灯都会变绿一秒钟,然后自动关闭。 MySQL 运行良好。

位于C:\MAMP\logs\apache_error.log 的日志文件包含这些行。

[Fri Jan 17 18:03:42 2020] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]  
[Fri Jan 17 18:03:43 2020] [warn] pid file C:/MAMP/bin/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?  
[Fri Jan 17 18:03:43 2020] [notice] Digest: generating secret for digest authentication ...  
[Fri Jan 17 18:03:43 2020] [notice] Digest: done

我发现网上很多人都遇到了和我一样的情况。但我找不到解决方案。所以我来这里寻找潜在的解决方案。

附:我没有常见的端口80 冲突问题。所以我确定我的问题与它无关。

【问题讨论】:

  • 我找到了绕过这个问题的方法,虽然我不明白为什么会这样。我在超级用户link 上找到了这种方法。通过以下方式更改 MAMP 设置:MAMP -> Preferences -> PHP。将标准版本 7.3.7 更改为 7.2.14。单击确定并启动服务器。然后一切正常。

标签: apache windows-10 mamp


【解决方案1】:

导航到 C:\MAMP\conf\apache\extra。

编辑 httpd-ssl.conf 并注释以下行:

...
SSLSessionCache        shmcb:/some/example/path/ssl_scache(512000)
...

收件人:

...
# SSLSessionCache        shmcb:/some/example/path/ssl_scache(512000)
...

另外,请查看https://cwiki.apache.org/confluence/display/HTTPD/SSLSessionCache 了解更多信息。希望这会有所帮助。

【讨论】:

  • 感谢您的建议。对不起,但我没试过。因为我找到了一种通过更改 PHP 版本来规避它的方法。请在我的问题之后参考我自己的评论。
猜你喜欢
  • 2017-11-17
  • 2019-11-11
  • 2010-11-08
  • 2020-08-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-07-28
相关资源
最近更新 更多