Php – Downgrade PHP 5.5 to 5.4 (CentOS REMI Repo)

centos6downgradeioncubePHP

I have installed a LEMP stack by following this guide http://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/

I now have the latest version of PHP v5.5. I then proceeded to setup my website/scripts and one of the requirement was ionCube Loader (some of my scripts are paid/encoded scripts).

So, I ran the ioncube installer wizard, only to find they don't support php 5.5 yet…

enter image description here

I now need to downgrade my PHP to 5.4… how can I go about doing this?

Best Answer

Uninstall 5.5: yum erase $packagenames where $packagenames is a space separated list of the php packages that were installed with yum on the tutorial.

yum erase php-common php-fpm. Likely it'll tell you it needs to uninstall other packages due to php being a dependency for them. Fine.

Install 5.4. Follow the same instructions on that tutorial but leave 'remi-php55' out of the last command in section 3.