Been having an issue on my development server concerning php code in html files. Adding a handler to .htaccess didn’t work.
Found instrucions on updating the php.conf file on stackoverflow
Just add this:
SetHandler application/x-httpd-php
to /etc/apache2/mods-enabled/php5.conf