|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1507 Problems with symlink in open_basedir
Submitted: 1999-06-08 06:29 UTC Modified: 1999-06-08 20:16 UTC
From: koch at n-e-t dot de Assigned: steffann (profile)
Status: Closed Package: Other
PHP Version: 3.0.7 OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1999-06-08 06:29 UTC] koch at n-e-t dot de
When using "php3_open_basedir /somepath_with_symlink" in the virtual host section of apache's httpd.conf, access
to files within this path (e.g. fopen) is not possible. When specifying this path without the symlink, access to files is possible.

Extract from httpd.conf:
 AddType application/x-httpd-php3 .php3
 Php3_Safe_Mode on
 Php3_Doc_Root /NET/www/
 Php3_Open_Basedir /NET/www/ (NO ACCESS POSSIBLE)
  ( BUT)
 Php3_Open_Basedir /ldsk/fs4/www/ (ACCESS POSSIBLE)

Configured Modules:
 mysql, apache

There is no php.ini file in use.

/NET is a symbolic link to /ldsk/fs4.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-08 19:04 UTC] steffann at cvs dot php dot net
Before checking the basedir, all symlinks in the path being checked are removed. The [php3_]open_basedir config-option doesn't remove the symlinks so the paths will never match. I'll make the config-option remove the symlinks too so they will match.
 [1999-06-08 20:16 UTC] steffann at cvs dot php dot net
fixed in CVS
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 20:03:44 2023 UTC