how to install php

Shell
https://www.youtube.com/watch?v=iW0B9NTId2g

Watch this video.#On ubuntu (there are many versions, php7 is just an example):
sudo apt install php7
#Then if you want to use it on apache2:
sudo a2enmod php
sudo systemctl restart apache2
Source

Also in Shell: