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

-- 
Apache serves PHP files without parsing them
https://bugs.launchpad.net/bugs/525041
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to