Apache segv after updating PHP + MySQL on RH ES3

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Apache segv after updating PHP + MySQL on RH ES3

Unread post by davej »

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
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Unread post by davej »

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:

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'
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Im no longer maintaining php 4.4.x, I will be moving php 5.0 (or maybe even 5.1) into the main archive shortly
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Unread post by davej »

Thanks for the reply, Scott. Is there a stable php 5 package for RH ES3 that I can get my hands on and if so, how?

Thanks again,

Dave
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

sure, the release candidate is in the atomic-testing channel now
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Unread post by davej »

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
davej
Forum User
Forum User
Posts: 11
Joined: Tue Jun 27, 2006 7:20 am
Location: Bristol, UK
Contact:

Unread post by davej »

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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I feel your pain, up2date is not a very good package manger.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You can install yum on RH ES3 right?
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

yeah, you can use the version from CentOS3, as well as use all of CentOS 3's yum channels. If you update it through yum long enough, eventually the box will become CentOS3, so it kind of begs the question... why even buy 3ES if you're eventually going to turn it into a CentOS3 box :P
Post Reply