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.

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:

CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo

and enabled remi.repo by editing file:


and setting:


This allowed the php upgrade i.e.

yum upgrade php

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

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

# php -v

Failed loading /usr/local/ioncube/ioncube/ /usr/local/ioncube/ioncube/ 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

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

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 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>