This is the simple process, through which PHP was updated to version 7.0 on our Ubuntu 14.04 server (hosted on our favorite DigitalOcean):
$ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install php7.0 $ sudo apt-get install php7.0-mysql $ sudo a2dismod php5 $ sudo a2enmod php7.0 $ sudo service apache2 restart
References:
Add Comment