Добавить AddType application/x-httpd-php .php в файл httpd.conf, если вы используете Apache 2.4
AddType application/x-httpd-php .php