Add the following line to the start of /etc/apache2/apache2.conf
AddType application/x-httpd-php .php
Tip: if you want magic quotes to be turned off as well (deprecated 'feature'), add this line:
php_flag magic_quotes_gpc Off
Add the following line to the start of /etc/apache2/ apache2. conf
AddType application/ x-httpd- php .php
Tip: if you want magic quotes to be turned off as well (deprecated 'feature'), add this line:
php_flag magic_quotes_gpc Off