H2S Forum

How to install PHP 7 on Ubuntu 14.04

Here are the commands that one can use to install php7.0 on Ubuntu 14.04 Desktop or server for the handling of different PHP based projects and developments.

sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Remove If PHP5 is installed already on your system before issuing php7 instalaltion command.

sudo apt-get remove php5-common -y
sudo apt-get purge php5-common -y

Now copy-paste or type the command on your Ubuntu 14.04 Linux operating system for php7 installation.

sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y