php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24254 php_admin_value preset stuck as static value
Submitted: 2003-06-19 04:24 UTC Modified: 2011-01-01 01:51 UTC
Votes:7
Avg. Score:4.0 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:2 (40.0%)
From: gareth at raveroom dot com Assigned:
Status: Open Package: Apache2 related
PHP Version: 4.3.2 OS: Win2kAdvSrv
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gareth at raveroom dot com
New email:
PHP Version: OS:

 

 [2003-06-19 04:24 UTC] gareth at raveroom dot com
Description:
------------
As many big web-hosting companies do, I have my Apache httpd.conf file setup as a dynamic virtual host, rather than individual <VirtualHost> entries in the file. Which in turn causes me a problem when I try to enable safe mode and set the include/base_opendir settings.
The reason this is a problem is that as far as I can tell, there is no coding ability for the php_admin_value/php_value directives within the .conf/.htaccess files. I am hoping there is something I don't know about this issue, or hopefully a PHP project person considers this feature worth putting into the next PHP upgrade.

Reproduce code:
---------------
example of how code could look if having mod_rewrite style variables available.

calling http://www.domain.com
php_admin_value open_basedir ${DocumentRoot}
result setting open_basedir = /www/d/domain.com

or with Apache 2.0's mod_vhost_alias style coding

calling http://domain.com
php_admin_value open_basedir /www/%1.1/%1+/
result setting open_basedir = /www/d/domain.com



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 01:51 UTC] jani@php.net
-Package: Feature/Change Request +Package: Apache2 related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Aug 20 18:01:31 2019 UTC