php 7.2 latest repo on ubuntu 18.04 code example Example: ubuntu install php 7 sudo apt-get install php libapache2-mod-php