#19292 [Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
From: joerg@php.net Date: Sun, 20 Oct 2002 16:25:53 +0000 Subject: #19292 [Fbk]: 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-22887@lists.php.net to get a copy of this message
ID: 19292
Updated by: joerg@php.net
Reported By: tnowak@triger.com.pl
Status: Feedback
Bug Type: Apache related
Operating System: linux
PHP Version: 4.3.0-dev,4.2.3
New Comment:
Testing the latest php4-200210200600 shows the same behaviour.
I have using it by renaming a index.html to index.php file. So no
special php funktion is using and i'm sure that there is no
auto_prepend_file or something else.
Here are the php configuration for that vhost.
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value session.save_path
/daten/http/takenet/www.ad4screen.de/tmp
php_admin_value open_basedir
"/daten/http/takenet/www.ad4screen.de:/usr/lib/php/"
php_admin_value doc_root /daten/http/takenet/www.ad4screen.de
php_admin_value upload_tmp_dir
/daten/http/takenet/www.ad4screen.de/tmp
php_admin_value error_log
/daten/http/takenet/www.ad4screen.de/logs/php_error.log
php_admin_value upload_max_filesize 10M
php_admin_value post_max_size 10M
</IfModule>
Previous Comments:
------------------------------------------------------------------------
[2002-10-18 16:43:52] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Try this LATEST snapshot.
------------------------------------------------------------------------
[2002-10-16 03:54:55] bin@entertainz.co.nz
Another update: This appears to be happening only to virtual hosts
which do not have the admin flag open_basedir set.
------------------------------------------------------------------------
[2002-10-15 23:02:16] bin@entertainz.co.nz
Update: Upon closer inspection, I'm getting the same error occasionally
from simply loading my testfile2.php script, it seems to be a general
PHP problem rather than relatedd specifically to the include() or any
other function.
I have not tested any version subsequent to 4.2.3 as I don't have a
development system available.
------------------------------------------------------------------------
[2002-10-15 22:48:23] bin@entertainz.co.nz
Rasmus: Here is the code I have just used to test this issue:
testfile1.php:
<?
include( "testfile2.php" );
?>
testfile2.php:
<?
echo "testing...";
?>
When trying to load testfile1.php, it works approx. 80% of the time,
displaying 'testing...' in the browser. However, about one time in 5
it displays the following error:
Warning: open_basedir restriction in effect. File is in wrong directory
in Unknown on line 0
Warning: Failed opening '/home/httpd/html/testfile1.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0
(Note it says it is unable to open the main file, not the one I'm
trying to include in my script)
------------------------------------------------------------------------
[2002-10-15 21:48:18] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Please try the snapshot so we know whether this is fixed or not.
------------------------------------------------------------------------
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)
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Opn->Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl->Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk->Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl->Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk->Opn]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Opn->Csd]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Csd->Opn]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Opn->Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk->Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl->Ver]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ver->Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl->Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk->Opn]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Opn->Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Ctl->Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk->NoF]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [NoF->Fbk]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Fbk->Csd]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Csd]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Csd]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Csd->Opn]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Opn->Csd]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Csd->Bgs]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Bgs]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
- #19292 [Bgs->Csd]: random error: open_basedir restriction in effect. File is in wrong directory
| « previous | php.bugs (#22887) | next » |
|---|