Howto install php 5.2.17 on centos 6 x86_64

Solution 1:

Do the following:

wget http://www.atoomnet.net/php/php-5.2.17/php-5.2.17-1.x86_64.rpm

Then:

rpm -ivh php-5.2.17-1.x86_64.rpm

Then:

vi /etc/yum.conf

Add the following under [main]:

exclude=php*

If you do all that it should work fine.

But, I warn you, you should really run the latest version of PHP to insure that your server is secure.

Solution 2:

If centos 6 does not support legacy PHP, you are better off running v5 because if you have to mod the OS to trick it into running it, it could open up a security hole. Recommend you use the latest PHP and OS. If that's not possible, then make sure you have very tight security when using old PHP. That's why they update their software. I'm looking for a way to get this to work right for you.

EDIT: I was beaten to it. Refer to the other poster's wget method. EDIT2: removed useless text.

Solution 3:

The atomicturtle repo contains php 5.2.17 x64 rpms for centos 6. Download the necessary packages and install it.

http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/

Updated link: http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/drpms/