So I\'ve upgraded to Mavericks (or maybe Yosemite) yesterday but now I only get a view of my directory when I visit localhost but the included index.php isn\'t executed anym
Found the solution:
Have to uncomment this line in /etc/apache2/httpd.conf as well:
/etc/apache2/httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
Don't forget to restart Apache after changes:
sudo apachectl restart