sudo apt-get install php7.0 code example Example: ubuntu install php 7 sudo apt-get install php libapache2-mod-php