View Single Post

  #4 (permalink)  
Old 03-07-2007
Jim Lucas
 
Posts: n/a
Default Re: [PHP] PHP Patch open_basedir for dynamic virtualhost

DoM wrote:
> Jim Lucas wrote:
>> http://us3.php.net/manual/en/feature...i.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.

does this work?

The manual says it should.

>
>> 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/"


Nope, that was the sixth paragraph.

>
> 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
Reply With Quote