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:
Are you sure you have php installed? If it is you need to make sure that apache is associating .php
files with the php handler. Look for an entry similar to the following in /etc/apache/apache.conf
LoadModule php5_module modules/libphp5.so
and
application/x-httpd-php php php5
upon changing the file you will need to restart apache via sudo service httpd restart