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
CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo
and enabled remi.repo by editing file:
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/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
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