1

I need to use an older version of php for my project (I know that it isn't supported). I have tried adding PPA ppa:ondrej/php , but it doesn't work - It couldn't find the package. Is there another way? Simple

sudo apt-get install php5

doesn't work either; it returns no installation candidate

Zanna
  • 72,312

1 Answers1

5

After adding the repository http://ppa.launchpad.net/ondrej/php/ubuntu you have to update your repositories. Please try this:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.5

You can use php5.6 instead..