I\'m hoping that this will be a useful page for getting started running php code as well as solve the current problem I\'m having some very simple code as follows:
You can install libapache2-mod-php5 using
apt-get install libapache2-mod-php5
Worked for me.