diff options
-rw-r--r-- | apache2/conf.d/local-php4.conf | 6 | ||||
-rw-r--r-- | apache2/conf.d/local-suphp.conf | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/apache2/conf.d/local-php4.conf b/apache2/conf.d/local-php4.conf new file mode 100644 index 0000000..37f6d9e --- /dev/null +++ b/apache2/conf.d/local-php4.conf @@ -0,0 +1,6 @@ +# This file is based on /etc/apache2/mods-available/php4.conf +# Comment out those rules to enable the functionality only per vhost. +<IfModule mod_php4.c> + AddType application/x-httpd-php .php .phtml .php3 + AddType application/x-httpd-php-source .phps +</IfModule> diff --git a/apache2/conf.d/local-suphp.conf b/apache2/conf.d/local-suphp.conf new file mode 100644 index 0000000..a249342 --- /dev/null +++ b/apache2/conf.d/local-suphp.conf @@ -0,0 +1,11 @@ +# This file is based on /etc/apache2/mods-available/suphp.conf +# Comment out those rules to enable the functionality only per vhost. +<IfModule mod_suphp.c> + AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml + suPHP_AddHandler x-httpd-php + suPHP_Engine on +# # Use a specific php config file (a dir which contains a php.ini file) +# suPHP_ConfigPath /etc/php4/cgi/suphp/ +# # Tells mod_suphp NOT to handle requests with the type <mime-type>. +# suPHP_RemoveHandler <mime-type> +</IfModule> |