Ubuntu – Downgrading PHP from 5.5 to 5.3 on Ubuntu 14.04

curlPHP

now, I know that this question has been asked tons of times over the internet, but I followed lots of tutorials on the argument without being able to get to the answer.

This is my situation:

  • Ubuntu server 14.04 newly updated on the customer's machine

  • PHP version 5.5.9 that came pre-installed with the server

  • cURL version 7.35 that I installed for the needs of my php script

  • a PHP script that needs PHP 5.3.28 AND cURL 7.35 to run properly.

I've done that in Windows, it runs smoothly.

But now, in Ubuntu, I can't seem to find any solution.

I uninstalled PHP 5.5 and than tried to reinstall PHP 5.3, no errors in the procedure, but nothing is installed in the end (not even php-cli), in fact running

apt-get install php5

will do the trick and reinstall PHP 5.5!

I also tried to fall back to 12.04, but that way cURL rolled back at 7.22.

I've been struggling for hours, and I hope that someone can give me a hint on how to proceed.

TIA,
Riccardo

Best Answer

You can install an older version as follows :

apt-get install php5=5.3.28
Related Question