RE: [PHP] open_basedir "/" not working after upgrade
| From: | Ed Lazor | Date: | Mon, 30 Aug 2004 19:01:44 +0000 |
| Subject: | RE: [PHP] open_basedir "/" not working after upgrade | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195184@lists.php.net to get a copy of this message | ||
><Directory /apache2/htdocs/horde >
> php_admin_flag safe_mode off
> php_admin_value upload_tmp_dir /tmp
> php_admin_value open_basedir "/"
></Directory>
>.....
> But after setting
> php_admin_value open_basedir none
> instead of
> php_admin_value open_basedir "/"
>
> the problem disappeared.
>
> I just want to know the exact meaning of that directive.
From php.ini
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
Are you assuming that "/" refers to /apache2/htdocs/horde ?
The open_basedir expects a fully qualified directory path. The parameter
that you're giving it is the file system root directory "/". The error
displays because the root directory is not a subdirectory of
/apache2/htdocs/horde.
It looks like you're effectively trying to give one webspace access to two
directories, which isn't possible since you're using open_basedir. Have you
tried using symbolic links to get around this?
-Ed