在Apache中启用核心转储

我想在我的Apache Web服务器中启用核心转储
由于我有PHP 5.5和OPcache我的Mediawiki网站崩溃,出现以下错误:

child pid ... exit signal Segmentation fault (11) 

所以我想通过核心转储获得更多的信息。

我创build了一个目录: http:http (我的apache用户和组)拥有的/tmp/apache-coredump和777权限。
我添加到httpd.conf文件中:

 CoreDumpDirectory "/tmp/apache-coredump" 

但是,现在(使用CoreDumpDirectory指令)我的Apache服务器在启动时崩溃了:

 sudo systemctl restart httpd Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details. 

日记给我以下信息

 apachectl[4149]: CoreDumpDirectory /tmp/apache-coredump does not exist 

我检查,目录存在0_°

编辑:
我改变了httpd.conf文件中的CoreDumpDirectory指令,它允许我启动我的Web服务器

 CoreDumpDirectory /tmp 

没有CoreDumpDirectory指令,ServerRoot( /etc/httpd )目录中不会生成核心转储。
我在Archlinux 3.10.6-2 64位与Apache / 2.2.25 Prefork

核心转储默认情况下通常是禁用的,因为它们往往会浪费磁盘空间,您需要将它们切换为您的apache会话。

 $ ulimit -a core file size (blocks, -c) 0 [...] $ ulimit -c unlimited $ systemctl restart httpd 

另外,您是否启用了SELinux? 输出ls -alZ /tmp/apache-coredump