#23462 [NEW]: Position "php_admin_value open_basedir" in httpd.conf
| From: | admin at xpower dot nwt | Date: | Sat, 03 May 2003 10:42:09 +0000 |
| Subject: | #23462 [NEW]: Position "php_admin_value open_basedir" in httpd.conf | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38981@lists.php.net to get a copy of this message | ||
From: admin at xpower dot nwt
Operating system: FreeBSD, Linux
PHP version: 4.3.2RC2
PHP Bug Type: Apache2 related
Bug description: Position "php_admin_value open_basedir" in httpd.conf
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 :)
--
Edit bug report at http://bugs.php.net/?id=23462&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23462&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23462&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23462&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23462&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23462&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23462&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23462&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23462&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23462&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23462&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23462&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23462&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23462&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23462&r=gnused