PHP Patch open_basedir for dynamic virtualhost
| From: | DoM | Date: | Wed, 07 Mar 2007 17:54:24 +0000 |
| Subject: | PHP Patch open_basedir for dynamic virtualhost | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-250020@lists.php.net to get a copy of this message | ||
Hi all,
it's a lot of time that i am trying to let Jason Greene open_basedir
patch work with apache massive virtualhost.
This is direct link to patch when it was developed:
http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php
This is a FreeBSD port more recent with same code:
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2005-September/066983.html
If i set to open_basedir directive (inside virtualhost config section)
value VIRTUAL_DOCUMENT_ROOT, it works but i am not able to add static
path like /tmp/
This is an example:
VirtualDocumentRoot /var/www/php.net/%1
php_admin_value open_basedir VIRTUAL_DOCUMENT_ROOT
user test.php.net is chrooted for php scripts in his homedir but he
cannot write temporary files inside /tmp/
I tried with value %1; VIRTUAL_DOCUMENT_ROOT:/tmp/ and more but no way.
These are my apps version:
OS: Debian Sarge 3.1
Server version: Apache/2.0.54 (mpm-prefork pacchettizzata)
PHP: 4.4.6 (Source) & 5.2.1 (Source)
Any help will be useful and appreciated.
Thank you all
Regards