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: 2021-08-08 04:22 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: cmb (profile)
Status: No Feedback Package: Apache2 related
PHP Version: 4.3.2 OS: Win2kAdvSrv
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 [2021-07-26 13:38 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-26 13:38 UTC] cmb@php.net
Is this still relevant to anyone?
 [2021-07-26 13:38 UTC] cmb@php.net
Is this still relevant to anyone?
 [2021-08-08 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC