Apache / PHP分段错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache / PHP分段错误相关的知识,希望对你有一定的参考价值。
我一直试图解决这个问题大约2个月了。
我正在运行xampp 5.6.3 64位(apache 2.4.10和php 5.6.3)
在我的apache error_log中,我得到了这个:
[Mon Dec 29 20:53:49.172435 2014] [core:notice] [pid 15389] AH00051: child pid 15800 exit signal Segmentation fault (11), possible coredump in /opt/lampp/dumps/
[Mon Dec 29 20:53:51.174128 2014] [core:notice] [pid 15389] AH00051: child pid 15917 exit signal Segmentation fault (11), possible coredump in /opt/lampp/dumps/
[Mon Dec 29 20:54:02.185605 2014] [core:notice] [pid 15389] AH00051: child pid 15904 exit signal Segmentation fault (11), possible coredump in /opt/lampp/dumps/
[Mon Dec 29 20:54:03.186109 2014] [core:notice] [pid 15389] AH00051: child pid 15972 exit signal Segmentation fault (11), possible coredump in /opt/lampp/dumps/
[Mon Dec 29 20:54:07.190239 2014] [core:notice] [pid 15389] AH00051: child pid 15942 exit signal Segmentation fault (11), possible coredump in /opt/lampp/dumps/
[Mon Dec 29 20:54:22.205090 2014] [core:notice] [pid 15389] AH00051: child pid 15808 exit signal Segmentation fault (11), possible coredump in /opt/lampp/dumps/
这种情况随机而且经常发生......我做了一个apache的核心转储,这就是我得到的:
Core was generated by `/opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f747374a7d6 in zend_stack_push () from /opt/lampp/modules/libphp5.so
我也试过xampp 5.5.19-0(apache 2.4.10和php 5.5.19),但我在error_log中仍然遇到同样的错误。我目前正在运行5.5.19
我在这台服务器上运行的站点/脚本是非常密集的。
有任何想法吗 ?
答案
我有这个问题并检查了我的日志。我找到了这样一条线
[25-Dec-2017 20:38:45 Europe/Berlin] PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
我将我的Ioncube装载线移到了php.ini的顶部
zend_extension="ioncube_loader_lin_5.6.so"
问题解决了。
以上是关于Apache / PHP分段错误的主要内容,如果未能解决你的问题,请参考以下文章