You need to add AddType to your server config:
AddType x-httpd-php .php
This can be done in .htaccess or httpd.conf file. The AddType directive maps the given filename extensions onto the specified content type.
Also check for
include /private/etc/apache2/other/php5.conf in httpd.conf