This question already has an answer here:
I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to no longer support php5.
I tried to install it from this repo, however when It try to install it with apt I always get similar errors.
$ sudo apt-get install php5-cli Cependant les paquets suivants le remplacent : php7.0-cli:i386 php7.0-cli`
Which means it's obsolete. How can I install PHP 5.6 on Xenial?