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

From: Date: Wed, 07 May 2003 09:56:13 +0000
Subject: #23504 [Opn->Fbk]: Open_BASE_DIR is no longer working.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39218@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
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: Redhat Linux 7.3
 PHP Version:      4.3.2RC2
 New Comment:

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?



Previous Comments:
------------------------------------------------------------------------

[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

------------------------------------------------------------------------

[2003-05-07 03:41:56] edink@php.net

And could it be a simple spelling error? Its open_basedir, not
open_base_dir.

------------------------------------------------------------------------

[2003-05-06 18:27:08] sniper@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




------------------------------------------------------------------------

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



Thread (16 messages)

« previous php.bugs (#39218) next »