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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: akapoli at x3 dot hu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC