Re: PHP Patch open_basedir for dynamic virtualhost

From: Date: Wed, 07 Mar 2007 19:01:38 +0000
Subject: Re: PHP Patch open_basedir for dynamic virtualhost
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-250031@lists.php.net to get a copy of this message
Jim Lucas wrote: > ²WoÕ > ŽŸ ÀI"—?;http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir > > Read the first line of the first paragraph. > > /tmp/ is not with-in /var/www/php.net/%1 it is out side Yes, of course i know this :) As i wrote i would like to include static path after dynamic path like /var/www/php.net/%1 ( i remember you that i know i could assign dynamic open_basedir value such as /var/www/php.net/%1/ or VIRTUAL_DOCUMENT_ROOT only with Jason Greene patch) I mean something like this: /var/www/php.net/%1/:/tmp/:/usr/local/xxx/ and so on. > But then read the fifth paragraph and you should have your solution. > If you mean this: The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/" i tell you that i do not want an open_basedir value just like /var/www/php.net/%1/ where /var/www/php.net/tmp/ is the answer cause then all users (%1) inside /var/www/php.net/ can access their homedir each other. I do not know if i understand what you mean but i hope no and hope that i am wrong, so i could hope in a solution :) Anyway thanks to be interested about my problem. Waiting for your reply. Regards

« previous php.general (#250031) next »