【问题标题】:Apache server var/www becoming unavailable after 5 minutes5 分钟后 Apache 服务器 var/www 变得不可用
【发布时间】:2013-12-02 14:50:00
【问题描述】:

我的 Apache 服务器上的 var/www 目录下有一些 php 文件。当我重新启动服务器时,我可以访问它们大约 5 分钟,然后它们不再可用。页面尝试加载但没有任何反应(某种无限加载),我必须再次重新启动服务器。

编辑: 这里要求的是日志:

[Mon Dec 02 16:13:40 2013] [notice] Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.6 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Dec 02 16:16:30 2013] [notice] child pid 1387 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:31 2013] [notice] child pid 1388 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:31 2013] [notice] child pid 1389 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:32 2013] [notice] child pid 1390 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:32 2013] [notice] child pid 1391 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:32 2013] [notice] child pid 1392 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:32 2013] [notice] child pid 1393 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:34 2013] [notice] child pid 1394 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:34 2013] [notice] child pid 1395 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:34 2013] [notice] child pid 1396 exit signal Segmentation fault (11)
[Mon Dec 02 16:16:34 2013] [notice] child pid 1397 exit signal Segmentation fault (11)
...

这是无限的

【问题讨论】:

  • 听起来像一些缓存问题。尝试记录这些操作,看看服务器重启 5 分钟后会发生什么。
  • 你检查过日志吗?
  • 感谢 cmets,我已将日志添加到问题中
  • 试试这个以获得更多关于你的错误的信息stackoverflow.com/questions/7745578/…
  • Apache 崩溃了。请检查崩溃生成的内核的确切原因。您可以使用命令“ulimit -c unlimited”从 bash shell 启用核心生成。

标签: apache


【解决方案1】:

我最终卸载并重新安装了 Apache。

【讨论】:

    【解决方案2】:

    我遇到了同样的问题。更改 php.ini 文件中的 memory_limit = 512M(从 128M)然后重新启动 Apache 即可解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-29
      • 2014-09-12
      • 2018-03-29
      相关资源
      最近更新 更多