Install server

Install server

Install php 5.6

To upgrade to a newer version of PHP 5.6 on Ubuntu 14.04, you can use Ondřej Surý’s PPA. He is one of the Debian maintainers of the php5 package. To add the PPA and upgrade your packages, run:

—-
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

sudo apt-get update
sudo apt-get upgrade
sudo apt install php5.6
php -v

sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-curl

sudo apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip

sudo service apache2 restart

—-