Sep
1st
Wed
1st
Beware of the default Apache 2 config for PHP
Ilia Alshanetsky points out that AddHandler is the wrong directive to use for executable file types like PHP, because Apache could execute the file bad.php.jpeg (I haven’t tested this yet, but plan to).
The safer directive is apparently AddType:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps