ID: 24282 Comment by: celticlegend at dublin dot com 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:
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. Previous Comments: ------------------------------------------------------------------------ [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] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2003-08-15 09:52:48] dprado at floripa dot com dot br Samething happens here. PHP 4.3.2, the bug only shows randomly when accessing virtualhosts that DO NOT have open_basedir set on a machine that has other vhosts with open_basedir set. Taking a wild guess, it seems that an apache thread that server up a page for a vhost with openbasedir set when it tries to serve a page for another vhost whithout openbasedir it keeps the openbasedir settings. Setting open_basedir for all vhosts solved the problem. ------------------------------------------------------------------------ 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