[suPHP] 1- suPHP in an .htaccess file ? 2 - differents php config files

Pascal Foubert pfoubert at carat-hosting.com
Sun Jan 7 00:21:56 CET 2007


Hello

Is it possible to enter the suPHP config in an .htaccess file ?

it seems not, but we'd like to be sure !

Impossible to enter this in an .htaccess file rather than an Apache 
vhost config file ?

==========================================

AddHandler x-httpd-php5 .php5
AddType application/x-httpd-php5 .php5
AddHandler x-httpd-php .php

suPHP_Engine on
suPHP_UserGroup xxxxxx xxxxxx
suPHP_AddHandler x-httpd-php5 .php5
suPHP_AddHandler x-httpd-php .php
php_admin_flag engine Off

<Files *.php5>
   suPHP_ConfigPath /etc/php5
</Files>
<Files *.php>
   suPHP_ConfigPath /etc
</Files>

==========================================

also, we found only this way to tell suPHP to use a different config 
file depending of the PHP version used

<Files *.php5>
   suPHP_ConfigPath /etc/php5
</Files>

<Files *.php>
   suPHP_ConfigPath /etc
</Files>

Is there an other way (better !) on a linux box ?

Thanks for your help

Pascal



More information about the suPHP mailing list