php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24583 open basedir is not working in apache config
Submitted: 2003-07-10 05:09 UTC Modified: 2003-07-10 11:57 UTC
From: bugs at ghost dot lt Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.2 OS: FreeBSD 4.8-STABLE Apache/2.0.46
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugs at ghost dot lt
New email:
PHP Version: OS:

 

 [2003-07-10 05:09 UTC] 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 />
 -->

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-10 11:57 UTC] sniper@php.net
php_admin_flag -> php_admin_value for options that require something else than off/on..



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC