|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15367 open_basedir = "~" (cgi mode)
Submitted: 2002-02-04 09:13 UTC Modified: 2010-04-12 02:41 UTC
From: akapoli at x3 dot hu Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-02-04 09:13 UTC] akapoli at x3 dot hu
It would be so nice to set the open_basedir in php.ini to the current user's home directory: open_basedir = "~"

We are hosting several virtual sites. They run php whith their own UID (Apache suexec - php in cgi mode). We have to lock them to safe place: their home dir. Now this option is not available so we set open_basedir = ".", but this makes difficulties in case of sophisticated applications, where the application is divided into directories, and the backward opens are needed ( ex. include("../includes/") ).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-12 02:41 UTC]
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2010-04-12 02:41 UTC]
~ is shell specific and is by no mean a valid path.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Oct 23 07:01:25 2018 UTC