php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 18 = ?
Subscribe to this entry?

 
 [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:
 <VirtualHost eule1.n-e-t.de:80>
 ...
 AddType application/x-httpd-php3 .php3
 Php3_Safe_Mode on
 ...
 Php3_Doc_Root /NET/www/eule1.n-e-t.de/doc
 Php3_Open_Basedir /NET/www/eule1.n-e-t.de/doc (NO ACCESS POSSIBLE)
  ( BUT)
 Php3_Open_Basedir /ldsk/fs4/www/eule1.n-e-t.de/doc (ACCESS POSSIBLE)
 ...
 </VirtualHost>

Configured Modules:
 mysql, apache

There is no php.ini file in use.

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

Patches

Pull Requests

History

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 06:01:27 2025 UTC