Top Nav

Upgrade CentOS4 to PHP 5.2.9

To facilitate upgrading CentOS 4 servers to PHP 5.2.9 we created a new source RPM. This work was based on previous RPMs by Jason at Utter Ramblings (http://www.jasonlitka.com).

Here’s a tar/gz with all the source and binary RPMS:

http://blogs.reliablepenguin.com/files/php-5.2.9_for_centos4.tar.gz

Contained in the package are the following files:

freetds-0.64-1.el4.rf.i386.rpm
freetds-devel-0.64-1.el4.rf.i386.rpm
libmcrypt-2.5.7-1.2.el4.rf.i386.rpm
libmcrypt-devel-2.5.7-1.2.el4.rf.i386.rpm
libtidy-0.99.0-12.20070228.jason.1.i386.rpm
libtidy-devel-0.99.0-12.20070228.jason.1.i386.rpm
pcre-6.6-1.1.i386.rpm
pcre-devel-6.6-1.1.i386.rpm
php-5.2.5-jason.2.src.rpm
php-5.2.9-rp.1.i386.rpm
php-5.2.9-rp.1.src.rpm
php-5.2.9.tar.gz
php-bcmath-5.2.9-rp.1.i386.rpm
php-cli-5.2.9-rp.1.i386.rpm
php-common-5.2.9-rp.1.i386.rpm
php-dba-5.2.9-rp.1.i386.rpm
php-devel-5.2.9-rp.1.i386.rpm
php-embedded-5.2.9-rp.1.i386.rpm
php-gd-5.2.9-rp.1.i386.rpm
php-imap-5.2.9-rp.1.i386.rpm
php-ldap-5.2.9-rp.1.i386.rpm
php-mbstring-5.2.9-rp.1.i386.rpm
php-mcrypt-5.2.9-rp.1.i386.rpm
php-mhash-5.2.9-rp.1.i386.rpm
php-mssql-5.2.9-rp.1.i386.rpm
php-mysql-5.2.9-rp.1.i386.rpm
php-ncurses-5.2.9-rp.1.i386.rpm
php-odbc-5.2.9-rp.1.i386.rpm
php-pdo-5.2.9-rp.1.i386.rpm
php-pgsql-5.2.9-rp.1.i386.rpm
php-snmp-5.2.9-rp.1.i386.rpm
php-soap-5.2.9-rp.1.i386.rpm
php-tidy-5.2.9-rp.1.i386.rpm
php-xml-5.2.9-rp.1.i386.rpm
php-xmlrpc-5.2.9-rp.1.i386.rpm

If you want to build install the binary distribution just do this:

or you can rebuild the source rpm as follows:

If you’ve not previously done so, you might need to install the rpm-build package in order to use the rpmbuild command. Also there will probably be some other dependencies that you have to install with yum to get the build to run.

After the build completes, just install the new binary packages: