RE: [PHP] open_basedir and safemode-ish things
| From: | Rasmus Lerdorf | Date: | Sat, 11 Aug 2001 08:13:27 +0000 |
| Subject: | RE: [PHP] open_basedir and safemode-ish things | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62253@lists.php.net to get a copy of this message | ||
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
>
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:rasmus@php.net]
> Sent: Saturday, August 11, 2001 1:04 AM
> To: Chris Cameron
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] open_basedir and safemode-ish things
>
>
> Did you actually search the manual?
>
> http://php.net/open_basedir gives you a list of hits. One of
> them is:
>
> http://php.net/manual/en/features.safe-mode.php
>
> -Rasmus
>
>