Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 14.04 - Install PHP 7 From PPA

PHP

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
Last updated: 16th September 2021
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch