ubuntu install latest php code example Example: ubuntu install php 7 sudo apt-get install php libapache2-mod-php