#19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory

From: Date: Mon, 06 Jan 2003 17:29:06 +0000
Subject: #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29211@lists.php.net to get a copy of this message
 ID:               19292
 Comment by:       apa@guff.net
 Reported By:      tnowak@triger.com.pl
 Status:           Critical
 Bug Type:         Apache related
 Operating System: linux
 PHP Version:      4.3.0-dev,4.2.3
 New Comment:

Getting totally wrong dir in the output of the error mess

open_basedir restriction in effect. File(index.php) is not within the
allowed path(s): (/home/userB)

Getting this error when surfing to userA which has open_basedir set to
/home/userA in apache virthost, one gets that access to userB home
isn't granted.

This might not be a fault in the open_basedir code, but for some reason
it get's the wrong open_basedir dir from the calling function.

If someone could take a deeper look at this it would be nice, hard to
explain to all customers that this problem is out of our hands to fix.


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

[2003-01-06 10:33:12] apa@guff.net

Bug confirmed on FreeBSD 4.6 with php 4.3.0. Totally random it  seems.

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

[2003-01-01 10:11:49] Xuefer@21cn.com

i have the same problem after i upgrade from 4.2.2 to 4.3.0(release
version)
pls update bug version No.
it's _NOT_ fixed in php-4.3.0

it seems php may not re-initize correctly
cause there's an un-relative bug: http://bugs.php.net/?id=21306
but i'm just guessing

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

[2002-11-12 16:06:18] phpbugs@c9x.org

Same problem here on FreeBSD 4.7-STABLE + Apache and it's 
really a showstoppper. 
 
PHP is today's 4.3.0-dev snapshot, but a 4.2.3 release had 
the same behavior. 
 
Sometimes the error message reports the open_basedir of 
another unrelated virtualhost. 
 
The problem _never_ showed up on OpenBSD 3.1/3.2 + Zeus + 
PHP 4.2.3 with FastCGI on a very similar setup. 
 
There's definitely an off-by-one or some kind of memory 
corruption somewhere.

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

[2002-11-11 08:43:36] robert.prokes@ignum.cz

We randomly gets this error even if virtual server has this option
switched off. (but other virtual servers has this option on)

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

[2002-11-10 05:01:42] static@wicked.dj

I get this problem alot on my site http://perthtunes.wicked.dj/ which
is not hosted by me..

Apache Version 1.3.27 (Unix) 
Kernel Version 2.4.18-0.12 
Perl Version 5.006001 
PHP Version 4.2.3 

the site has alot of nested include files and I seem to get a high rate
of recreation of the error. seems to happen 1 in every 5 or so page
views for most users.

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

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/19292

-- 
Edit this bug report at http://bugs.php.net/?id=19292&edit=1



Thread (107 messages)

« previous php.bugs (#29211) next »