Php – Trying to mirror a legacy PHP 5.3.29 app on CentOS 7 (strange I know!)

centos7mampPHPphp53

I'm wondering if any linux/php gurus out there could help. Long story short, i've been tasked with creating a mirror/backup of a website which is made in PHP 5.3.29 to mitigate any risks if the existing server fails for any reason.

The app is huge and legacy and written in PHP 5.3.29. I have tried to download it locally and get it running on my local MAMP instance using the most up to date version of PHP, but due to the difference between 5.3.29 and the current version, the app fails all over the place. I have suggested that the app be re-written going forward but for the interim solution I need to get this working.

I have got a CentOS 7 server set up with the latest version of PHP installed, but obviously I know this is going to fail, I have had a look online and haven't been able to find a good solution.

Does anyone have any recommendations (I have only been working directly with Linux servers for a few months so i'm still new to some areas). on how I can get PHP 5.3.29 running on CentOS 7?

Thanks for any help/advice.

Best Answer

You could also use the IUS archives and install the RPM's manually on CentOS 6. https://dl.iuscommunity.org/pub/ius/archive/CentOS/6/x86_64/

Download them all and installing with yum will solve any dependencies you might need.