Update PHP Version Ubuntu



apt-get install python-software-properties

Run the following to add the PPA:

For PHP 5.5, PHP 5.6 and PHP 7.0:
sudo apt-add-repository ppa:ondrej/php

For PHP 5.4 (Deprecated, upgrade at least to PHP 5.5):
sudo apt-add-repository ppa:ondrej/php5-oldstable

For PHP 5.5 (Deprecated, use ppa:ondrej/php):
sudo apt-add-repository ppa:ondrej/php5

For PHP 5.6 (Deprecated, use ppa:ondrej/php):
sudo apt-add-repository ppa:ondrej/php5-5.6

Then update the package lists and perform the upgrade:
sudo apt-get update

For PHP 5.5:
sudo apt-get install php5.5

For PHP 5.6:
sudo apt-get install php5.6

For PHP 7:
sudo apt-get install php7.0

Now you should have the latest PHP version.

Tulis komentar anda... Conversion Conversion Emoticon Emoticon

Thanks for your comment