#38670 [Com]: Whole 4.4.x branch has problem with open_basedir option nested from Apache2

From: Date: Mon, 19 Feb 2007 13:49:06 +0000
Subject: #38670 [Com]: Whole 4.4.x branch has problem with open_basedir option nested from Apache2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109110@lists.php.net to get a copy of this message
 ID:               38670
 Comment by:       jos at webstekker dot nl
 Reported By:      serokka at hrn dot ru
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: FreeBSD 4.10
 PHP Version:      4.4.4
 New Comment:

The same problem exists when upgrading from 5.2.0 to 5.2.1 on Windows
2003 Server (web edition).

safe_mode=on, safe_mode_gid=off:

Warning: include() [function.include]: SAFE MODE Restriction in effect.
The script whose uid is 1 is not allowed to access ./text/Home.txt owned
by uid 0 in E:\wwwroot\test\Home.php on line 14

safe_mode=on, safe_mode_gid=on:

Warning: include() [function.include]: SAFE MODE Restriction in effect.
The script whose uid/gid is 1/1 is not allowed to access ./text/Home.txt
owned by uid/gid 0/0 in E:\wwwroot\test\Home.php on line 14

This works fine in 5.2.0 without any changes to the server
configuration.


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

[2007-01-25 21:27:38] david at cryptix dot de

I have the same issue on:
Debian Etch
Apache/2.2.3 (Debian) PHP/4.4.4-8 mod_ssl/2.2.3 OpenSSL/0.9.8c
mod_chroot/0.5

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

[2007-01-11 12:33:21] prieler at abm dot at

hi!

i also have this problem.
as already said on some reloads of a simple .jpg image this error
occurs:
<br /> <b>Warning</b>: Unknown(): SAFE MODE Restriction in effect. The
script whose uid/gid is ... is not allowed to access ... owned by
uid/gid ... in <b>Unknown</b> on line <b>0</b><br />
i've testet it with apache 2.2.0 and apache 2.2.4. and on each compiled
the phpversions 4.3.11, 4.4.2 and 4.4.4.
Operating-System is a SuSE-Linux 10.0

i think the error comes on the first time i open an image after apache
is restarted.
ignore_repeated_errors = On / Off doesn't change anything.

thanks.

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

[2006-11-28 19:50:43] steveny at missiondata dot com

We are having the same issue on:

Fedora Core release 4 
PHP 4.4.4 (./configure --with-apxs2=/web/apache/bin/apxs --with-mysql
--with-pgsql --with-gd --with-zlib --with-jpeg-dir --with-gettext
--enable-mbstring --enable-track-vars --with-xml --with-curl)
Apache/2.0.55

If there is more info that I can provide, please let me know.  For now,
I guess the only option is to pull back to PHP 4.3.11

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

[2006-11-17 14:33:22] ndsrox at gmx dot net

Hey folks,

i, better said my our customers, hat exactly this bug on a linux
system! So it`s not limited to FreeBSD.

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

[2006-11-08 22:25:08] tony2001@php.net

No, thanks, we've already figured out that this issue exists only on
FreeBSD and only with Apache2, because of some changes done to the
Apache engine.
Though, solution is not known yet.

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

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

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


Thread (29 messages)

« previous php.bugs (#109110) next »