#19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
| From: | bin at entertainz dot co dot nz | Date: | Mon, 14 Oct 2002 05:44:11 +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-22342@lists.php.net to get a copy of this message | ||
ID: 19292
Comment by: bin@entertainz.co.nz
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:
Experiencing the same issue with 4.2.3 on Linux with Apache 1.3.26 and
Ben-SSL 1.48.
Previous Comments:
------------------------------------------------------------------------
[2002-10-12 08:51:30] dookfx@firemail.de
i habve the same problems also with 4.30.pre1!
------------------------------------------------------------------------
[2002-10-12 02:24:17] sniper@php.net
update version info.
------------------------------------------------------------------------
[2002-10-11 23:48:57] hank@marinar.com
I notice the same problem with an earlier version (4.1.2-5) on a Debian
3.0 system running Apache 1.3.26. Hope that provides aid in tracking
this down.
The script used to reproduce this is simply phpinfo();
------------------------------------------------------------------------
[2002-10-11 13:15:49] joerg@php.net
I can confirm the message from ck@php.net.
Same problem here on several linux boxes that servers a nummer of
virtual host. On some vhosts we have these error on every 2nd hit.
There is a chance that these kind of error not effected is to the first
vhost.
I have made a test with the latest 'php4-200210100000' with shows the
same behavior.
Realy weird is that the unkown error messages shows the WRONG settings
(open_basedir) for that vhosts.
Screenshot:
http://sgi.takenet.de/~beh/error.gif
They are 2 other things out there that apps that using pear(cache)
shows open_basedir restrictions too. But the pear directory is always
allowed.
The make install prozess from the php latest and php-4.3rc1 shows both
tng-web:/usr/src/php-4.3.0pre1 # make install
Installing PHP SAPI module
[activating module `php4' in /usr/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/apache/libexec/libphp4.so
chmod 755 /usr/apache/libexec/libphp4.so
cp /usr/apache/conf/httpd.conf /usr/apache/conf/httpd.conf.bak
cp /usr/apache/conf/httpd.conf.new /usr/apache/conf/httpd.conf
rm /usr/apache/conf/httpd.conf.new
Installing shared extensions:
/usr/lib/php/extensions/no-debug-non-zts-20020429/
Installing PHP CLI binary: /usr/bin/
Installing PEAR environment: /usr/lib/php/
Warning: file_exists() [http://www.php.net/function.file-exists]: SAFE
MODE Restriction in effect. The script whose uid is 500 is not allowed
to access /root owned by uid 0 in
/daten/src/php-4.3.0pre1/pear/PEAR/Config.php on line 282
a lot of more warnings.
Screenshot:
http://sgi.takenet.de/~beh/error2.gif
We are not using any kind of caching software or other 3rd party
modules. And yes.. switching back to 4.2.1 solves all the problems
without making any changes on configfiles (php.ini , httpd.conf)
------------------------------------------------------------------------
[2002-10-10 08:43:37] sniper@php.net
Keep this at 'Critical' status.
(ck@php.net: Can you be a bit more specific? And did you test with PHP
4.3.0-dev there?)
------------------------------------------------------------------------
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