【问题标题】:Mac Apache / PHP will not start session for only one site and segmentation faultMac Apache / PHP 不会仅针对一个站点和分段错误启动会话
【发布时间】:2019-07-26 04:24:02
【问题描述】:

Mac Apache 2.4 / PHP 版本 7.3.6 堆栈。我没有使用 MAMP。我在 web-root 目录中有几个 web-project 文件夹。除了两个都是具有相似主题/代码的 WordPress 站点外,所有站点都运行良好。

当访问这两个项目的 index.php 文件时,浏览器不会完成页面加载并给出错误页面"The Connection has been reset"。我可以登录并重置永久链接,然后页面将再次加载。

我断定它是 .htacess 文件,因为如果我删除它(或如上所述重置永久链接),页面将正常加载。

但是,过了一段时间(几个小时甚至第二天),问题又出现了。我已经使用 WordFence 扫描了病毒,但我没有通过所有的源代码来尝试找到问题。

/var/log/apache2/error_log 文件输出包括我尝试的每个页面加载:

[Mon Jul 22 17:50:31.470224 2019] [core:notice] [pid 80] AH00052: child pid 37499 exit signal Segmentation fault (11)
[Mon Jul 22 17:50:32.544341 2019] [core:notice] [pid 80] AH00052: child pid 37677 exit signal Segmentation fault (11)
[Mon Jul 22 17:50:33.620666 2019] [core:notice] [pid 80] AH00052: child pid 37680 exit signal Segmentation fault (11)
[Mon Jul 22 17:50:33.620762 2019] [core:notice] [pid 80] AH00052: child pid 37679 exit signal Bus error (10)
[Mon Jul 22 17:50:34.707740 2019] [core:notice] [pid 80] AH00052: child pid 37684 exit signal Segmentation fault (11)
[Mon Jul 22 17:50:34.707818 2019] [core:notice] [pid 80] AH00052: child pid 37683 exit signal Segmentation fault (11)
[Mon Jul 22 17:50:34.707840 2019] [core:notice] [pid 80] AH00052: child pid 37682 exit signal Segmentation fault (11)
[Mon Jul 22 17:50:34.707859 2019] [core:notice] [pid 80] AH00052: child pid 37681 exit signal Bus error (10)
[Mon Jul 22 17:50:35.780855 2019] [core:notice] [pid 80] AH00052: child pid 37685 exit signal Segmentation fault (11)

我已尝试清除浏览器缓存。 Safari、Firefox 和 Chome 的行为都相同。

当页面拒绝加载时,我还对新鲜且功能正常的 .htaccess 文件和 .htaccess 文件进行了 md5 校验和。它们的 md5 输出是相同的。

什么可能导致 .htaccess 文件导致 Apache 出现 Seg-fault?还有其他可能的解释吗?

【问题讨论】:

    标签: wordpress apache .htaccess segmentation-fault


    【解决方案1】:

    检查 .htaccess 中是否有 AddType 指令并将其删除。 我遇到了从 Catalina 开始的同样问题,删除 AddType 解决了这个问题。 我的 PHP 版本是 7.3.25,Apache 版本是 2.4.41。

    【讨论】:

      猜你喜欢
      • 2017-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-20
      • 1970-01-01
      相关资源
      最近更新 更多