php.net |  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/lib.inc") ).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-12 02:41 UTC] pajoye@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2010-04-12 02:41 UTC] pajoye@php.net
~ is shell specific and is by no mean a valid path.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC