Upgrading to PHP 4.4.4 on RHEL & CentOS

January 25, 2007 by · 2 Comments 

Yeah, I know, some of you don't like PHP 5. Some don't like it because it breaks some of their (poorly written) software. Some don't like it because there aren't any RH-approved packages for upgrading. Some don't like it for good reason because PHP 4 is actually faster at many tasks when compared to PHP 5.0.x or 5.1.x (I'm stopping there, 5.2.0 is wicked fast for me). For those people, I'm going to toss this out quickly so that you have an easier time moving to the newest version of PHP 4 without compiling from source.

If anyone reading this uses the Plesk Management Panel then you're probably familiar with AtomicRocketTurtle. "Back in the day" Scott used to provide RPMs for PHP 4.4.4 on RHEL/CentOS 3 & 4. He has since dropped support for that version (unless you're one of this paying customers) but he's still got the src.rpm available for anyone. That src.rpm makes it very easy to upgrade your system to PHP 4.4.4.

Assuming that you've followed (or at least read) some of my other tutorials, you've probably got all of the dependencies filled. If not, just make sure that you've got a full development environment installed (gcc, gcc-c++, make, autoconf, automake, etc...). Any "-devel" packages you need will make themselves known the first time you try to build the RPMs.

The source package you need can be found in ART's SRPMS repository. The file you want is named "php-4.4.4-1.art.src.rpm". In the method described repeatedly in my other how-to's, download and install it. Once you've done so, run "rpmbuild -bb" on the .spec file (which should be in /usr/src/redhat/SPECS/).

Once it's done, you'll end up with a bunch of RPMs that can be used to upgrade your PHP install. Make sure that you update your PHP cache, Ioncube loaders, Zend loaders, etc. Because if you weren't already running 4.4.x, this will break them.

Comments

2 Responses to “Upgrading to PHP 4.4.4 on RHEL & CentOS”
  1. Michael says:

    Has anybody got php-4.4.4 running on a x86_64 machine under centos-4? I tried to compile the art-4.4.4 and it failed. There were lots of configure issues and some compile issues and several others.
    ciao - Michael

  2. Jason says:

    If you ran into "configure" issues then you probably don't have all of the necessary dependencies installed. Have you checked config.log after the failure?

    As to installing it on x86_64, no, I've never tried. I know that Scott (art) doesn't support it because Plesk will only run under x86.

This site is no longer updated. If you have a need for RHEL/CentOS LAMP Stack updates outside the normal channels, I recommend ART. https://updates.atomicorp.com/channels/