Update PHP but Segmentation Fault

stevenkly

Verified User
Joined
Aug 5, 2006
Messages
5
Hi,

I've just trying to update my php from 4.4.1 to 4.4.2 using the common methods and that is:

./build clean
./build update
./build php

The php build is completed, make is also completed but not the installation. It throws a segmentation fault. Now, I can't even start up my apache1 :( I think there's something wrong with PEAR... I try running, pear (it shows segmentation error), php (it shows segementation error).

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Make Complete
Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Enabling register_globals...
Increasing memory limit to 20M...
Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/directadmin/customapache/php-4.4.2.
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-4.4.2.

Please help :``(
 
I need more information to figure out the issue. You can quickly try removing all the files and the customer apache director BUT the build script. Then let it download all the sources again and rerun.
 
Hi all,

Thanks for your prompt reply.

After a few hours, I figured out that the configure.php in /usr/local/directadmin/customapache may help to troubleshoot and indentify the issue. I've commented out all the php configure options in configure.php and add it back one by one till I found the *culprit*.

It's the mysql
--with-mysql=/usr/local/mysql \
that is causing the issue. I've upgraded MySQL (from 5.0.23 to 5.0.24) prior to running
./build php
. To recover my system, I've downgraded MySQL back to 5.0.23 (FreeBSD 6.0 32-bit version from MySQL site).

Now, everything runs fine now except that I couldn't have the latest 5.0.24 running on my system - yet.

Anybody with the similar incident?

Cheers.
 
I had exactly the same problem WizardX and I rolled but to a previous version of mysql and it worked fine.

Just out of interest has anyone tried MySQL 5.0.24a? The changelog sounds like it could have possibly delt with the problem but i'm not willing to test it on a production server:

http://dev.mysql.com/doc/refman/5.0/en/news-5-0-24a.html

Anyway cheers for posting your problem as it made it a lot quicker for me to track down and resolve the issue.

Steven
 
I have one server running MySQL 5.0.24 with Apache 2.2.3 and PHP 5.1.6 and it is running fine.

I hate to say it but I don't think it will run smoothly unless you bring Apache and PHP up to the latest also.
 
Hi all...

Hi all,

Well, I'm having the same issues right now:

Details:

Code:
Stop in /usr/local/directadmin/customapache/php-4.4.4.
Installing php...
Installing PHP SAPI module:       apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp4.la /usr/lib/apache
/var/www/build/libtool --mode=install cp libphp4.la /usr/lib/apache/
cp .libs/libphp4.so /usr/lib/apache/libphp4.so
cp .libs/libphp4.lai /usr/lib/apache/libphp4.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/customapache/php-4.4.4/libs'
chmod 755 /usr/lib/apache/libphp4.so
[activating module `php4' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PEAR environment:      /usr/local/lib/php/
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/directadmin/customapache/php-4.4.4.
*** Error code 1

Working with:

Mysql 5.0.27
PHP 4.4.4
Apache 2.0.59
mod_perl 2.0.3

So what is going wrong here? I really would like to know, because we want to update some servers soon ;).
 
I think I recall seeing a bug report a while back regarding a pear bug in the php installer. something installing modules it shouldn't be. I can't quite remember exactly, and I can't seem to find it anymore. If you don't need the pear modules, then remeove them from your configure.php_ap2 file.

John
 
Hi all,

Well, I'm having the same issues right now:

Details:

Code:
Stop in /usr/local/directadmin/customapache/php-4.4.4.
Installing php...
Installing PHP SAPI module:       apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp4.la /usr/lib/apache
/var/www/build/libtool --mode=install cp libphp4.la /usr/lib/apache/
cp .libs/libphp4.so /usr/lib/apache/libphp4.so
cp .libs/libphp4.lai /usr/lib/apache/libphp4.la
libtool: install: warning: remember to run `libtool --finish /usr/local/directadmin/customapache/php-4.4.4/libs'
chmod 755 /usr/lib/apache/libphp4.so
[activating module `php4' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PEAR environment:      /usr/local/lib/php/
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/directadmin/customapache/php-4.4.4.
*** Error code 1

Working with:

Mysql 5.0.27
PHP 4.4.4
Apache 2.0.59
mod_perl 2.0.3

So what is going wrong here? I really would like to know, because we want to update some servers soon ;).


Hello!


Have same problem :mad:
Only PHP 4.4.5
Apache 1.3
Any have solution?

Thanks
 
Last edited:
Hello!


Have same problem :mad:
Only PHP 4.4.5
Apache 1.3
Any have solution?

Thanks

remove "--with-pear \" string from your configure.php_ap2 file.

then launch one more time:
./build clean
./build php n
 
Last edited:
Back
Top