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

Pascal Foubert pfoubert at carat-hosting.com
Mon Jan 8 02:22:54 CET 2007


Hello,

It's what we do, but it means you have the same php.ini config file for 
both php4 and php5. It can be a huge problem.

I don't see how you tell that the handler php4 has to use for example 
/etc/php.ini and the handler php5 has to use /etc/php5/php.ini

It could be a huge pbm to have the same php.ini file for both php4 and 
php5 (load modules, different config, different zend, ...)

I've done a test.

If we remove this in the vhost config file

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

Then bth use the same php.ini. If we keep this, then they use the one we ask with suPHP_configPath

But is there a better method to do this ?

Thanks

Pascal




suphp at pmenier.dynalias.net a écrit :
> Hello
>
> You can set in suphp.conf a thing like :
>
> [handlers]
> ;Handler for php-scripts
> x-httpd-php=php:/usr/local/bin/php
> x-httpd-php5=php:/usr/local/bin/php-516
>
> and in httpd.conf :
>
> AddHandler x-httpd-php .php .php3
> AddHandler x-httpd-php5 .php5 .p3 .pinc
> <Directory />
> suPHP_AddHandler x-httpd-php
> suPHP_AddHandler x-httpd-php5
> </Directory>
>
> Patrick
>
>
> ----- Original Message ----- 
> From: "Pascal Foubert" <pfoubert at carat-hosting.com>
> To: <suPHP at lists.marsching.biz>
> Sent: Sunday, January 07, 2007 12:21 AM
> Subject: [suPHP] 1- suPHP in an .htaccess file ? 2 - differents php
> configfiles
>
>
>   
>> 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
>>
>> _______________________________________________
>> suPHP mailing list
>> suPHP at lists.marsching.biz
>> http://lists.marsching.biz/mailman/listinfo/suphp
>>
>>
>>     
>
>   




More information about the suPHP mailing list