install apache2 for php in ubuntu 18.04 code example Example: installing php on ubuntu sudo apt install php7.2-cli sudo apt install hhvm