Install PHP 7.1 and Related Modules code example
Example 1: installing php on ubuntu
sudo apt install php7.2-cli
sudo apt install hhvm
Example 2: install php 7.1 on ubuntu 18.04
sudo apt install software-properties-commonsudo add-apt-repository ppa:ondrej/php