I found the best description for PHP 7 upgrade

I did the upgrade by this article but the PHP did’nt work:

http://askubuntu.com/questions/705880/how-to-install-php-7

This works for me: 1. Re-Install PHP 5.6

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0

From php5.6 to php7.0 :

Apache:
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart

http://askubuntu.com/questions/761713/how-can-i-downgrade-from-php-7-to-php-5-6-on-ubuntu-16-04

********************************

PHP7: Mcrypt PHP extension required.

sudo apt-get update
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get upgrade

http://stackoverflow.com/questions/34083470/php7-laravel-mcrypt-issue

***********************************

php7 CURL PHP extension:

sudo apt-get install php7.0-curl

install GD:

sudo apt-get install php7.0-gd
************************************
max_file_uploads 2 -> 20M

sudo nano /etc/php/7.0/apache2/php.ini

I edited in nano.

sudo service apache2 restart

*************************************

PHP7 Install SQLITE

sudo apt-get install php7.0-sqlite3
sudo service apache2 restart

*************************************