From:             bugs at ghost dot lt
Operating system: FreeBSD 4.8-STABLE Apache/2.0.46
PHP version:      4.3.2
PHP Bug Type:     Apache2 related
Bug description:  open basedir is not working in apache config

Description:
------------
open_basedir directive in virtual host doesn't work as expected. it fails
all the time (not as in http://bugs.php.net/bug.php?id=24282 )

virtual host config:
<VirtualHost *:80>
DocumentRoot    /usr/home/webusers/xxx/www
ServerName      xxx.domain.com
php_admin_flag open_basedir /usr/home/webusers/xxx/www/
php_admin_flag safe_mode on
php_admin_flag safe_mode_exec_dir /usr/local/sbin/none
</VirtualHost>

there is no setting for open_basedir in php.ini, just on this virtual
host



Reproduce code:
---------------
<?php

phpinfo();

?>

Expected result:
----------------
output of phpinfo :)

Actual result:
--------------
<!-- <br />
<b>Warning</b>:  Unknown(): open_basedir restriction in effect.
File(/usr/home/webusers/xxx/www/index.php) is not within the allowed
path(s): (0) in <b>Unknown</b> on line <b>0</b><br />
 --><!-- <br />
<b>Warning</b>:  Unknown(/usr/home/webusers/xxx/www/index.php): failed to
open stream: Operation not permitted in <b>Unknown</b> on line <b>0</b><br
/>
 --><!-- <br />
<b>Warning</b>:  (null)(): Failed opening
'/usr/home/webusers/xxx/www/index.php' for inclusion
(include_path='.:/usr/local/phplib/jpgraph:') in <b>Unknown</b> on line
<b>0</b><br />
 -->

-- 
Edit bug report at http://bugs.php.net/?id=24583&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24583&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24583&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24583&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24583&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24583&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24583&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24583&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24583&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24583&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24583&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24583&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24583&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24583&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24583&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24583&r=gnused

Reply via email to