Enable PHP module for apache2
If PHP module is not enabled by default in your apache version, you can enable it your self. Use the “a2enmod” command followed by php5 to enable it.
$ a2enmod php5After enabling the php module, you must restart the apache server to reflect the changes.
$ /etc/init.d/apache2 restart