Apache segfault on phpinfo after PHP update (eAccelerator)

Written by - 0 comments

Published on - Listed in PHP Linux Apache


Today I compiled and installed the newest PHP 5.2 version (5.2.17). After some tests and running a typical phpinfo() command, I experienced segfaults of Apache:

[notice] child pid 20602 exit signal Segmentation fault (11), possible coredump in /tmp

By following the error log, calling phpinfo() seemed to be the only reason to cause a segfault like this. After running php -v the reason was obvious:

# php -v
This build of "eAccelerator" was compiled for PHP version 5.2.13. Rebuild it for your PHP version (5.2.17) or download precompiled binaries.
PHP 5.2.17 (cli) (built: Jan 29 2011 23:42:02)
Copyright (c) 1997-2010 The PHP Group

It is necessary to recompile eAccelator. But a new ./configure won't do the job, it is necessary to do a make clean before (I ran into the same problem without make clean)! So here we go in the extracted eAccelerator dir:

# make clean
# phpize
# ./configure
# make
# make install

After this I called phpinfo() several times, no crash was detected. And the php -v output looked like this:

# php -v
PHP 5.2.17 (cli) (built: Jan 29 2011 23:42:02)
Copyright (c) 1997-2010 The PHP Group


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder