0

I'm using Ubuntu 15.10. I need to install PHP 5.4 version cause of one of PHP plugin just support for php < 5.56 how to do this?

wittich
  • 1,174
  • 13
  • 26
Senanayaka
  • 113
  • 3

1 Answers1

0

You can use the Ondrej oldstable PPA to install php 5.4. First you need to remove the existing php.

sudo apt-get remove --purge `dpkg -l | grep php | grep -w 5.5 | awk '{print $2}' | xargs`

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:ondrej/php5-oldstable

sudo apt-get update

sudo apt-get install -y php5