For those who need an updated PHP version on their Centos 5.4 x86_64 machines, I have compiled them and put them
here for you to download.
I compiled these because Centos 5.3 which has PHP 5.1.6 does not work with open_basedir restrictions
and symlinks. Version 5.2.13 does.
These packages run on some of the production machines I manage and work fine. But this is no guarantee these will work for you.
I have taken the standard Centos 5.3 php rpm files (php-5.1.6-23.2.el5_3.src.rpm and php-extras-5.1.6-15.el5.centos.1.src.rpm) and installed them.
After that I updated the php version to 5.2.13 in the php.spec and php-extras.spec and removed all patches which did not apply cleanly.
You can use the src.rpm's to compile for an i386 machine.
These rpm's are not tested on Redhat Enterprise Linux but they might just work.