Header
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup Hardware Internet Linux Nagios/Monitoring Personal PHP Proxy Shell VMware Windows Wyse

Apache segfault on phpinfo after PHP update (eAccelerator)
Sunday - Jan 30th 2011 - 12.51 am (+0100) - Nyon, Switzerland - (0 comments)

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.

Go to Homepage home RSS Feed
About ck about
Linux Howtos how to's
Nagios Plugins nagios plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

9376 Days
until Death of Computers
Why?