[BlueOnyx:04982] Re: 5106R YUM updates (suPHP)

Michael Stauber mstauber at blueonyx.it
Wed Jul 7 13:18:20 -05 2010


Hi Stephanie,

> Perhaps all that's needed is to add a runtime php setting for open_basedir
> to the virtual container (/etc/httpd/conf/vhosts/site??)? This might be a
> better way to make site-specific adjustments to php.ini settings rather
> than handing off global control of php.ini. I imagine site control to be
> like cascading style sheets - where you have global settings for php
> (php.ini) setting the server wide defaults, and the runtime settings
> modifying an allowed subset of these on a per-site basis.

Yeah, I did some research and testing in between and it's like this: suPHP can 
use a custom php.ini for each site, which is the favoured method with the 
cPanel crowd. Or you can set certain values through an envelope variable. Or 
at the worst: One can create a wrapper for the php-cgi call and can pass the 
desired php_admin flags through the -b switch of the php-cgi call.

Coding wise this all doesn't make much difference. I'll see if I can get the 
"custom php.ini for each site" approach to work. If not, then it'll be the 
wrapper method.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list