//install
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.2
//Configuring Apache to Use PHP 7.2 ls /etc/apache2/mods-available/php* ls /etc/apache2/mods-enabled/php* sudo a2dismod php7.0 sudo a2enmod php7.2 apachectl -t sudo service apache2 restart
https://www.liquidweb.com/kb/install-php-7-2-ubuntu-16-04/