From: "Florian Arzberger"
> has anyone ever thought of implementing php open_basedir restrictions by
> default on bq? like restricting write access to the current vsite and /tmp
> only? i wouldn't see any downsides there, and it could still easily be
> removed for certain sites if necessary.
>
I do that in my perl install script.
$ls=`ls -la /home/sites | grep $hostname.$domainname`;
($prev0, $prev1, $prev2, $prev3, $prev4, $prev5) = split(/\//,$ls);
chomp ($prev3);
$location = "$prev2/$prev3";
$sitenumber = $prev3;
$thefile = "/etc/httpd/conf/vhosts/$sitenumber".".include";
system ("echo 'Alias /hosted-by /home/sites/home/web/hosted-by' >>
$thefile");
system ("echo 'php_admin_value open_basedir
/home/.sites/$location/web:/home/tmp' >> $thefile");
print "I echoed the hosted-by and phpadmin_value to $thefile\n";
Normally it does not cause a problem.
----
Ken Marcus
Precision Web Hosting, Inc.
http://www.precisionweb.net