#17567 [Com]: open_basedir does not work properly with symbolic links.
| From: | phpbugs at noerenberg dot de | Date: | Tue, 30 Jul 2002 13:41:08 +0000 |
| Subject: | #17567 [Com]: open_basedir does not work properly with symbolic links. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15574@lists.php.net to get a copy of this message | ||
ID: 17567
Comment by: phpbugs@noerenberg.de
Reported By: mburger@netbeyond.de
Status: Open
Bug Type: Filesystem function related
Operating System: Linux (SuSE)
PHP Version: 4.2.1
New Comment:
I think this issue has already been reported in
http://bugs.php.net/bug.php?id=14076
Hajo
Previous Comments:
------------------------------------------------------------------------
[2002-06-02 15:59:27] mburger@netbeyond.de
Hello,
open_basedir has trouble with symlinks:
File: /var/www/server/xyz.com/ezdemo/htdocs/classes/ezfile.php
Symlink: /kunden/hosting/server -> /var/www/server
Unless I set open_basedir to '/' I get some errors like these:
open_basedir set to '/var' or '/kunden/hosting/server/xyz.com/ezdemo':
Warning: open_basedir restriction in effect. File is in wrong directory
in /var/www/server/xyz.com/ezdemo/htdocs/classes/ezfile.php on line
282
Warning:
fopen("/kunden/hosting/server/xyz.com/ezdemo/htdocs/classes/cache/02208adcfca7b0a5f64d1e07f5f5c385.php",
"w+") - Operation not permitted in
/var/www/server/xyz.com/ezdemo/htdocs/classes/ezfile.php on line 282
open_basedir set to '/kunden'
Warning: open_basedir restriction in effect. File is in wrong directory
in Unknown on line 0
Warning: Failed opening
'/kunden/hosting/server/xyz.com/ezdemo/htdocs/index_admin.php' for
inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Regards,
Martin
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17567&edit=1