RE: [PHP] open_basedir and safemode-ish things
| From: | Chris Cameron | Date: | Sat, 11 Aug 2001 17:57:23 +0000 |
| Subject: | RE: [PHP] open_basedir and safemode-ish things | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62264@lists.php.net to get a copy of this message | ||
Yes.
Is anyone other than me trying to use this?
Chris.
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@php.net]
Sent: Saturday, August 11, 2001 2:13 AM
To: Chris Cameron
Cc: php-general@lists.php.net
Subject: RE: [PHP] open_basedir and safemode-ish things
Did you restart your server?
On Sat, 11 Aug 2001, Chris Cameron wrote:
> Put bluntly, it doesn't work.
>
> The manual says:
> If instead of safe_mode, you set an open_basedir directory then all
file
> operations will be limited to files under the specified directory.
>
> I'm assuming that this should work without making any changes to my
> php.ini.
> The manuals example:
> <Directory /docroot>
> php_admin_value open_basedir /docroot
> </Directory>
>
> I've got:
> <Directory /home/www/chris/www>
> php_admin_value open_basedir /home/www/chris/www
> </Directory>
>
> Like I said originally, I must be doing something wrong.
>
> "php_admin_value" isn't suppose to be set to something is it? I'm also
> surprised that (apperantly) nothing has to be changed in the .ini.
>
> This is inbetween <VirutalHost> and </VirutalHost>, and I'm testing
that
> it does/doesn't work by reading out my /etc/passwd. That directory
does
> exist, and is the www root for the Virtual Host.
>
> Thanks,
> Chris