Ubuntu 14.04 - Install PHP 7 From PPA

Run the script below to install PHP 7.0.

sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:ondrej/php-7.0 -y
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install php7.0 -y

To check your version, execute php --version and you should get output similar to:

PHP 7.0.0-2+deb.sury.org~trusty+1 (cli) ( NTS )  
Copyright (c) 1997-2015 The PHP Group  
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies  
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. More info.