I've encountered this problem before and been able to resolve it, but that is not the case now.
I followed some instructions to upgrade PHP 5.3 to PHP 5.6 and now PHP files simply show the source in the browser.
I've added the following lines to httpd.conf
AddHandler php5-script .php
AddType application/x-httpd-php .php
But this doesn't fix the issue.
Some other advice I've read is to use LoadModule php5_module modules/libphp5.so
however there is no libphp5.so file on my system, and I've read elsewhere that this advice is not right anyway
What else can I try?
The answers at PHP code is not being executed, instead code shows on the page don't appear to apply, for example as I've mentioned libphp5.so doesn't exist anymore