...
Please refresh your package list
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
and install php 5.6
sudo apt-get install php5.6
Check if you have the correct version of php installed
php5php -v
Change PHP configuration
...
...
Please refresh your package list
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
and install php 5.6
sudo apt-get install php5.6
Check if you have the correct version of php installed
php5php -v
...