Re: PHP Patch open_basedir for dynamic virtualhost
| From: | Jim Lucas | Date: | Wed, 07 Mar 2007 19:40:48 +0000 |
| Subject: | Re: PHP Patch open_basedir for dynamic virtualhost | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250033@lists.php.net to get a copy of this message | ||
DoM wrote:
Jim Lucas wrote:The manual says it should.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 sideYes, 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. does this work?
Nope, that was the sixth paragraph.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 did not understand this last statement.How would you get /var/www/php.net/tmp/ from /var/www/php.net/%1/:/tmp/
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-- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree. - Rush