#24282 [Com]: Strange Open Base Dir Restriction Errors

From: Date: Tue, 26 Aug 2003 05:43:14 +0000
Subject: #24282 [Com]: Strange Open Base Dir Restriction Errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46634@lists.php.net to get a copy of this message
ID: 24282 Comment by: red at raven dot ch Reported By: matzrek at shw-networks dot de Status: Open Bug Type: Apache related Operating System: Suse Linux 8.2 / Apache 1.3.27 PHP Version: 4.3.2 New Comment: seems to be the same or similar thing: bug #25198 I realised the same issue as dprado at floripa dot com dot br mentioned... Previous Comments: ------------------------------------------------------------------------ [2003-08-25 23:57:05] celticlegend at dublin dot com Am working with my hosting co. on what appears to be this same problem. php v.4.3.1, on Apache. The problem is very intermittent, and is triggered by the main site's index.php, the phpBB forum's .php files (various), and a blogger app (php). The hosting techs have not been able to trigger it yet, and say that we are their only customer reporting this problem. Strangely enough, all the errors indicate the offending page is trying to reach another users' directory (/home/bone and others). Sample errors follow: ##################################################### Example #1 of 3: Warning: Unknown(): open_basedir restriction in effect. File(/home/clegend/public_html/index.php) is not within the allowed path(s): (/home/bone) in Unknown on line 0 Warning: Unknown(/home/clegend/public_html/index.php): failed to create stream: Operation not permitted in Unknown on line 0 Warning: Unknown(): Failed opening '/home/clegend/public_html/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/tmp') in Unknown on line 0 (note: I have scoured the code and there is no reference to /home/bone anywhere.) ##################################################### Example #2 of 3: Warning: Unknown(): open_basedir restriction in effect. File(/home/clegend/public_html/forum/viewtopic.php) is not within the allowed path(s): (/home/bone) in Unknown on line 0 Warning: Unknown(/home/clegend/public_html/forum/viewtopic.php): failed to create stream: Operation not permitted in Unknown on line 0 Warning: Unknown(): Failed opening '/home/clegend/public_html/forum/viewtopic.php' for inclusion (include_path='') in Unknown on line 0 ##################################################### Example #3 of 3: Warning: Unknown(): open_basedir restriction in effect. File(/home/clegend/public_html/forum/posting.php) is not within the allowed path(s): (/home/bone) in Unknown on line 0 Warning: Unknown(/home/clegend/public_html/forum/posting.php): failed to create stream: Operation not permitted in Unknown on line 0 Warning: Unknown(): Failed opening '/home/clegend/public_html/forum/posting.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0 ##################################################### Apparently my host tech just replied to my ticket on this, just as I was about to hit "Submit": they found this ticket and are trying to apply what dprado suggested. Thanks in advance. ------------------------------------------------------------------------ [2003-08-21 12:38:31] matzrek at shw-networks dot de Will send my config this evening. Daniel ------------------------------------------------------------------------ [2003-08-21 11:40:14] fs at nessus dot at ok, i just sent you my configuration files. the php file is nonsense because it happens everywhere, phpinfo() for example. i hope we can fix it as soon as possible. greetings, Florian Schicker ------------------------------------------------------------------------ [2003-08-15 11:07:33] sniper@php.net I say again: We need to get the httpd.conf, etc. with which you HAVE been experiencing this problem. Read my previous comment. ------------------------------------------------------------------------ [2003-08-15 10:48:00] matzrek at shw-networks dot de Hi sniper, This error cannot be reproduces exactly at the moment. It happens sometimes. The only thin i realized : it does not appear directly after restarting apache. I have to wait several hours until it happens the first time. Daniel ------------------------------------------------------------------------ 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/24282 -- Edit this bug report at http://bugs.php.net/?id=24282&edit=1

« previous php.bugs (#46634) next »