作为服务器升级的一部分,我安装了较新版本的操作系统、PHP、Apache。此外,我还安装了PHPExpress在我的服务器上:
[root@dedicated]# cat /etc/redhat-release
CentOS release 6.2 (Final)
[root@dedicated]# php -v
PHP 5.3.3 (cli) (built: May 7 2012 20:13:47)
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with NuSphere PhpExpress v3.0.2, Copyright (c) 2002-2010 NuSphere Corp
[root@dedicated]# httpd -v
Server version: Apache/2.2.15 (Unix)
[root@dedicated]# cat /etc/php.d/phpexpress.ini
zend_extension="/usr/lib64/php/modules/phpexpress-php-5.3.so"
当我访问我的网站时,出现错误:
'The connection to the server was reset while the page was loading.'
Apache 错误日志显示唯一的错误:
[root@dedicated]# tail /var/log/httpd/error_log
[Mon May 14 20:16:35 2012] [notice] child pid 23328 exit signal Segmentation fault (11), possible coredump in /tmp
我尝试使用 gdb 调试核心转储:
gdb /usr/sbin/httpd core.23328
Reading symbols from /usr/lib64/php/modules/zip.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/php/modules/zip.so
Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fd7fbe48db5 in ?? () from /etc/httpd/modules/libphp5.so
Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-15.el6.centos.1.x86_64
您能帮我进一步了解该怎么做吗?为什么我会收到段错误?当我禁用 PHPExpress 模块时,错误就会消失。不幸的是,我必须使用该模块,而不是 gdb 专家来为您提供更多信息。
任何帮助都将不胜感激。谢谢。