H2S Forum

How to install php 7 on ubuntu 16.04/18.04/19.04

On Ubuntu 16.04, 17.04, 18.04 and the latest Ubuntu 19.04, there is no need to add any kind repository for the installation of PHP 7. By Default, it’s available for installation, just follow below given few simple commands:

Commands to install PHP7 on Ubuntu

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


sudo apt-get install php