#23504 [Opn]: Open_BASE_DIR is no longer working.

From: Date: Wed, 07 May 2003 11:01:23 +0000
Subject: #23504 [Opn]: Open_BASE_DIR is no longer working.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39223@lists.php.net to get a copy of this message
ID: 23504 Updated by: edink@php.net Reported By: ryza at deluxnetwork dot com Status: Open Bug Type: *General Issues Operating System: Redhat Linux 7.3 PHP Version: 4.3.2RC2 New Comment: Might be related to http://bugs.php.net/bug.php?id=23462 I am not able to reproduce on my box with a simple 2 vhost configuration. Previous Comments: ------------------------------------------------------------------------ [2003-05-07 05:11:45] ryza at deluxnetwork dot com done.. ------------------------------------------------------------------------ [2003-05-07 04:56:12] edink@php.net I've seen the warnings. Just to map out where the problem is could you try removing php_admin_value open_basedir from <Directory directive in put it into <VirtualHost? ------------------------------------------------------------------------ [2003-05-07 04:25:03] ryza at deluxnetwork dot com it dosnt happen everytime u load the page if i refresh a vhost a couple of times it occurs.. here is an example: http://dcp.deluxnetwork.com (user/pass = demo) the above vhost does not have open_basedir but it still produces errors. if it dosnt happen straight away then click reload. here is the apache config: http://203.45.200.219/httpd.conf ------------------------------------------------------------------------ [2003-05-07 04:20:21] edink@php.net I cannot reproduce this problem on my RedHat Linux 6.2 test machine. Please post more details about your actual apache configuration, especially virtual host settings and errors you recieve. ------------------------------------------------------------------------ [2003-05-07 03:52:55] ryza at deluxnetwork dot com no its not a spelling error i have this in my apache vhost <virtualvhost foo> php_admin_value open_basedir "/foo" </virtualhost> then when i access another vhost(which doesnt have open_base_dir restrictions) i get the error, Warning: Unknown(): open_basedir restriction in effect. File(/foo/index.php) is not within the allowed path(s): (/foo) in Unknown on line 0 Warning: Unknown(/foo/index.php): failed to open stream: Operation not permitted in Unknown on line 0 Warning: (null)(): Failed opening '/foo/index.php' for inclusion (include_path='.:/usr/local/php/lib/php') in Unknown on line 0 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23504 -- Edit this bug report at http://bugs.php.net/?id=23504&edit=1

« previous php.bugs (#39223) next »