Re: PHP Patch open_basedir for dynamic virtualhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Lucas wrote:
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux