|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17567 open_basedir does not work properly with symbolic links.
Submitted: 2002-06-02 15:59 UTC Modified: 2005-01-31 23:18 UTC
Avg. Score:4.0 ± 0.8
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: mburger at netbeyond dot de Assigned:
Status: No Feedback Package: Safe Mode/open_basedir
PHP Version: 4.2.1 OS: Linux (SuSE)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mburger at netbeyond dot de
New email:
PHP Version: OS:


 [2002-06-02 15:59 UTC] mburger at netbeyond dot de

open_basedir has trouble with symlinks:

File: /var/www/server/

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/':

Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/server/ on line 282

Warning: fopen("/kunden/hosting/server/", "w+") - Operation not permitted in /var/www/server/ 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/' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-30 09:41 UTC] phpbugs at noerenberg dot de
I think this issue has already been reported in

 [2002-10-06 20:45 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 03:01:29 2024 UTC