Apache segv after updating PHP + MySQL on RH ES3
Apache segv after updating PHP + MySQL on RH ES3
Hi,
I have just updated php + MySQL on a RedHat ES3 server, using up2date with the following in /etc/sysconfig/rhn/sources:
yum atomic http://3es.atomicrocketturtle.com/atomic/art/3ES/
I ran:
up2date-nox php
The update appeared to work fine, the following php/MySQL rpms are now installed:
# rpm -qa|egrep -i 'php|mysql' | sort
libdbi-dbd-mysql-0.6.5-5
mysql-4.1.20-1.art.rhel3.art
mysql-compat-4.1.20-1.art.rhel3.art
mysql-devel-4.1.20-1.art.rhel3.art
MySQL-python-0.9.1-6
mysql-server-4.1.20-1.art.rhel3.art
perl-DBD-MySQL-2.1021-3
php-4.4.2-3.rhel3.art
php-imap-4.4.2-3.rhel3.art
php-ldap-4.4.2-3.rhel3.art
php-mbstring-4.4.2-3.rhel3.art
php-mysql-4.4.2-3.rhel3.art
php-pear-4.4.2-3.rhel3.art
php-pgsql-4.4.2-3.rhel3.art
Most sites are mostly running OK, but I have the following problems:
(1) WordPress 2.0 sites cause apache to segv:
[notice] child pid 29291 exit signal Segmentation fault (11)
- this occurs reliably once per page when trying to access either of our two WP sites. Nothing in apache error logs.
(2) Zen Cart sites have a formatting problem, I found another user who experienced exactly the same error and the cause was found to be:
"one of the php libraries was compiled against an older version of mysql; so it wasn't recognizing the version information correctly."
http://www.zen-cart.com/forum/archive/i ... 26655.html
(3) As noted by another user here, phpinfo() says (after many apache & MySQL restarts):
Client API version 3.23.58
Apache's php.conf has:
LoadModule php4_module modules/libphp4.so
# rpm -qf /etc/httpd/modules/libphp4.so
php-4.4.2-3.rhel3.art
I have worked around problem (2) but (1) remains a serious problem, with clients ringing up and asking what's going on - this is a live server. Any advice greatly appreciated!
Thanks for your valued work in providing these repositories,
Dave
I have just updated php + MySQL on a RedHat ES3 server, using up2date with the following in /etc/sysconfig/rhn/sources:
yum atomic http://3es.atomicrocketturtle.com/atomic/art/3ES/
I ran:
up2date-nox php
The update appeared to work fine, the following php/MySQL rpms are now installed:
# rpm -qa|egrep -i 'php|mysql' | sort
libdbi-dbd-mysql-0.6.5-5
mysql-4.1.20-1.art.rhel3.art
mysql-compat-4.1.20-1.art.rhel3.art
mysql-devel-4.1.20-1.art.rhel3.art
MySQL-python-0.9.1-6
mysql-server-4.1.20-1.art.rhel3.art
perl-DBD-MySQL-2.1021-3
php-4.4.2-3.rhel3.art
php-imap-4.4.2-3.rhel3.art
php-ldap-4.4.2-3.rhel3.art
php-mbstring-4.4.2-3.rhel3.art
php-mysql-4.4.2-3.rhel3.art
php-pear-4.4.2-3.rhel3.art
php-pgsql-4.4.2-3.rhel3.art
Most sites are mostly running OK, but I have the following problems:
(1) WordPress 2.0 sites cause apache to segv:
[notice] child pid 29291 exit signal Segmentation fault (11)
- this occurs reliably once per page when trying to access either of our two WP sites. Nothing in apache error logs.
(2) Zen Cart sites have a formatting problem, I found another user who experienced exactly the same error and the cause was found to be:
"one of the php libraries was compiled against an older version of mysql; so it wasn't recognizing the version information correctly."
http://www.zen-cart.com/forum/archive/i ... 26655.html
(3) As noted by another user here, phpinfo() says (after many apache & MySQL restarts):
Client API version 3.23.58
Apache's php.conf has:
LoadModule php4_module modules/libphp4.so
# rpm -qf /etc/httpd/modules/libphp4.so
php-4.4.2-3.rhel3.art
I have worked around problem (2) but (1) remains a serious problem, with clients ringing up and asking what's going on - this is a live server. Any advice greatly appreciated!
Thanks for your valued work in providing these repositories,
Dave
Someone else with similar problems on WordPress, where the cause was found to be "they don't have PHP installed/compiled/configured correctly"
http://wordpress.org/support/topic/75405
The last posting on that topic gives a php configure command that resolved the problem for them:
http://wordpress.org/support/topic/75405
The last posting on that topic gives a php configure command that resolved the problem for them:
Code: Select all
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib'
Thanks. I've tried to add atomic-testing to /etc/sysconfig/rhn/sources but I've had a couple of beers and it's not working. I tried each of:
yum atomic-testing http://3es.atomicrocketturtle.com/atomi ... g/art/3ES/
yum atomic http://3es.atomicrocketturtle.com/atomi ... g/art/3ES/
in addition to or in place of the existing
yum atomic http://3es.atomicrocketturtle.com/atomic/art/3ES/
However "up2date-nox --dry-run php" comes back with "The following packages you requested are already updated: php". (Another beer and I would have dropped the --dry-run.) What's the correct line in sources for atomic-testing?
Cheers,
Dave
yum atomic-testing http://3es.atomicrocketturtle.com/atomi ... g/art/3ES/
yum atomic http://3es.atomicrocketturtle.com/atomi ... g/art/3ES/
in addition to or in place of the existing
yum atomic http://3es.atomicrocketturtle.com/atomic/art/3ES/
However "up2date-nox --dry-run php" comes back with "The following packages you requested are already updated: php". (Another beer and I would have dropped the --dry-run.) What's the correct line in sources for atomic-testing?
Cheers,
Dave
I ended up installing the php 5.0.4-13 rpms manually from
http://3es.atomicrocketturtle.com/atomi ... /3ES/RPMS/
Seems to be working fine, and phpinfo mysql section now says Client API version 4.1.20 .
Thanks,
Dave
http://3es.atomicrocketturtle.com/atomi ... /3ES/RPMS/
Seems to be working fine, and phpinfo mysql section now says Client API version 4.1.20 .
Thanks,
Dave