« Turn on register_long_arrays for PHP on PleskTurn on allow_url_fopen for PHP in Plesk »

Upgrade CentOS4 to PHP 5.2.9

05/12/09

Permalink 10:53:12 am, by admin Email , 333 words   English (US)
Categories: PHP

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:

rpm -Uvh freetds-0.64-1.el4.rf.i386.rpm \
    libmcrypt-2.5.7-1.2.el4.rf.i386.rpm \
    libtidy-0.99.0-12.20070228.jason.1.i386.rpm \
    pcre-6.6-1.1.i386.rpm php-*.i386.rpm

or you can rebuild the source rpm as follows:

rpm -i reetds-* libmcrypt-* \
    libtidy-* pcre-* \
    php-5.2.9-rp.1.src.rpm
rpmbuild -ba /usr/src/redhat/SPEC/php.spec

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:

rpm -i /usr/src/redhat/RPMS/i386/php-*.rpm

Feedback awaiting moderation

This post has 6 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
July 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Reliable Penguin offers Linux Server Migrations, Systems Administration & Programming. Visit our main website at:

http://www.reliablepenguin.com

Search

Bookmark and Share

XML Feeds

powered by b2evolution