RE: [PHP] open_basedir and safemode-ish things

From: Date: Sat, 11 Aug 2001 08:00:34 +0000
Subject: RE: [PHP] open_basedir and safemode-ish things
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62252@lists.php.net to get a copy of this message
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

« previous php.general (#62252) next »