From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4.3.0
PHP Bug Type:     Feature/Change Request
Bug description:  open_basedir and virtual hosting

In apache, using nameserver based mass virtual hosting, I can't set
open_basedir per user/virtual host basis.
Solutions like php_admin_value .:/usr/lib/php didn't work for all users
(../include).

The solution that I think of is to set open_basedir to something like
".:/var/www/*/:/usr/lib/php", where '*' will be replaced by the
coresponded directory from the script path.
For example '/var/www/www.site.com/forum/index.php' should have
open_basedir '/var/www/www.site.com/'.

I made an 'works for me patch' available here:
ftp://ftp.idilis.ro/linux/idilis/basedir.patch

However it wold be nice if this feature would be included in future php
versions.
-- 
Edit bug report at http://bugs.php.net/?id=22181&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22181&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22181&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22181&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22181&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22181&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22181&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22181&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22181&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22181&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22181&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22181&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22181&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22181&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22181&r=gnused

Reply via email to