php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23462 Position "php_admin_value open_basedir" in httpd.conf
Submitted: 2003-05-03 05:42 UTC Modified: 2004-01-28 14:23 UTC
Votes:8
Avg. Score:4.9 ± 0.3
Reproduced:8 of 8 (100.0%)
Same Version:6 (75.0%)
Same OS:7 (87.5%)
From: admin at xpower dot nwt Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.2RC2 OS: FreeBSD, Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at xpower dot nwt
New email:
PHP Version: OS:

 

 [2003-05-03 05:42 UTC] admin at xpower dot nwt
For all older PHP version folowing work fine:

<Directory /home/www/fly/web/>
php_admin_value open_basedir /home/www/fly/web/
</Directory>

and all Virtual servers under /home/www/fly/web/ use this restriction as I expect.

But after setup 4.3.2RC i see in error_log something like this:
[client XXX.XXX.XXX.XXX] PHP Warning:  Unknown(): open_basedir restriction in effect. File(/usr/home/www/kalimed/web/domain.com/public/wstats.php) is not within the allowed path(s): (/home/www/fly/web/) in Unknown on line 0

 - the restriction for /home/www/fly/web/ used for /home/www/kalimed/web/

If I move "php_admin_value open_basedir" into each virtual host section - this solve the probem. But I think this is more usability to use one <Directory> directive instead of putting config line for each virtual host. Thanks. Sorry for terrible english :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-04 00:51 UTC] sniper@php.net
See bug #25753 (placeholder for all these reports about leaking php ini settings)
 [2004-01-28 14:23 UTC] sniper@php.net
This should now be fixed in CVS. Fix scheduled for PHP 4.3.5.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 19:01:29 2024 UTC