- AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
- suPHP_AddHandler application/x-httpd-php
- suPHP_Engine on
+ <FilesMatch "\.ph(p3?|tml)$">
+ SetHandlerapplication/x-httpd-suphp
+ </FilesMatch>
+ suPHP_AddHandler application/x-httpd-suphp
+
+ <Directory />
+ suPHP_Engine on
+ </Directory>
+
+ # By default, disable suPHP for debian packaged web applications as files
+ # are owned by root and cannot be executed by suPHP because of min_uid.
+ <Directory /usr/share>
+ suPHP_Engine off
+ </Directory>
+