RE: [PHP] open_basedir Option
| From: | Luke Woollard | Date: | Thu, 20 Feb 2003 12:27:04 +0000 |
| Subject: | RE: [PHP] open_basedir Option | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136278@lists.php.net to get a copy of this message | ||
BE CAREFUL WITH PHP_ADMIN_VALUE AND OPENING FILES FROM /tmp DIRECTORY ON
*NIX SYSTEMS.
YOU WILL NOT BE ABLE TO OPEN UPLOADED FILES FOR EXAMPLE UNLESS YOU USE THE
'upload_tmp_dir' OPTION AS ANOTHER php_admin_value...
--------------
You can configure this values for independent VirtualHosts.
Just put at your httpd.conf <VirtualHost> section the flag
php_admin_value <variable_name> <value>
Example:
<VirtualHost somedomain.ext>
DocumentRoot /path/to/file
ServerName somedomain.ext
php_admin_value open_basedir /path/to/directory/you/contrain/user/to
</VirtualHost>
--------------
-----Original Message-----
From: Chris Wesley [mailto:cwwesley@udlug.org]
Sent: Thursday, 20 February 2003 11:18 AM
To:
Cc: Joachim Krebs
Subject: Re: [PHP] open_basedir Option
On Wed, 19 Feb 2003, Joachim Krebs wrote:
> How do I set the php.ini setting open_basedir on a per-directory
> basis? Ideally, I would like to set it using .htaccess files...
open_basedir can only be set in php.ini or httpd.conf.
You might be able to set it in <Directory> stanzas within your httpd.conf,
but you cannot set it in .htaccess files within directories (nor with
ini_set()).
~Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php