#24583 [Opn->Bgs]: open basedir is not working in apache config
| From: | sniper@php.net | Date: | Thu, 10 Jul 2003 16:57:44 +0000 |
| Subject: | #24583 [Opn->Bgs]: open basedir is not working in apache config | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43665@lists.php.net to get a copy of this message | ||
ID: 24583
Updated by: sniper@php.net
Reported By: bugs at ghost dot lt
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: FreeBSD 4.8-STABLE Apache/2.0.46
PHP Version: 4.3.2
New Comment:
php_admin_flag -> php_admin_value for options that require something
else than off/on..
Previous Comments:
------------------------------------------------------------------------
[2003-07-10 05:09:25] bugs at ghost dot lt
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 this bug report at http://bugs.php.net/?id=24583&edit=1