PHP 5.2.0 Upgrade and Issues

In the official yum repositories for Red Hat/CentOS for RHEL5 / CentOS 5.1 the current version of PHP is (at time of writing) 5.1.6 however when trying to install the Magento e-commerce application required PHP version 5.2.0 or higher.

To upgrade PHP to 5.2.5 I followed some instructions here on using the Remi repository i.e.

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-4.el5.remi.noarch.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
I already had yum priorities installed so to stop yum ignoring the remi repository I moved my existing .repos temporarily to a disabled directory:

/etc/yum.repos.d/disabled
CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo

and enabled remi.repo by editing file:

/etc/yum.repos.d/remi.repo

and setting:

enabled=1

This allowed the php upgrade i.e.

yum upgrade php

Future:
I hope to post in future about disabling the remi repo when the php version in the official repositories catches up.

Issues:
Warning: This upgrade to PHP 5.2.5 has caused some problems though hopefully minor.
Ioncube

# php -v

Failed loading /usr/local/ioncube/ioncube/ioncube_loader_lin_5.1.so: /usr/local/ioncube/ioncube/ioncube_loader_lin_5.1.so: undefined symbol: zend_unmangle_property_name_ex
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

Mambo
I think there may have been an odd impact on a very old Mambo version (which really should have been updated anyway).

Plesk
The plesk version of phpMyAdmin seems to have stopeed working although I have not had time to look into this. Self-install phpMyAdmin version is continuing to work.

RKHunter
RKHunter now complains in my daily mails presumably due to the PHP problem above:

/usr/local/bin/rkhunter: line 10003: [: -eq: unary operator expected
/usr/local/bin/rkhunter: line 10006: [: -eq: unary operator expected
/usr/local/bin/rkhunter: line 10003: [: compiled: integer expression expected
/usr/local/bin/rkhunter: line 10006: [: compiled: integer expression expected

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>