#19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
| From: | webmaster at sunegocioeninternet dot com | Date: | Fri, 09 May 2003 22:43:57 +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-39406@lists.php.net to get a copy of this message | ||
ID: 19292
Comment by: webmaster at sunegocioeninternet dot com
Reported By: tnowak at triger dot com dot pl
Status: No Feedback
Bug Type: Apache related
Operating System: linux
PHP Version: 4.2.3,4.3.0
New Comment:
OS = RedHAt 7.XX
WebServer=Apache 1.3.xx
PHP 4.3.xxx
Acerca de la restriccion de directorios que nos da OPEN_BASEDIR solo le
limita a ejecutar los *.PHP que esten en ese PATH si se esta ejecutando
sobre un VIRTUAL_SERVER hay que cambiar INCLUDE_PATH
".:/usr/local/lib/php" por INCLUDE_PATH "<your document
root>/<application main>/"
Previous Comments:
------------------------------------------------------------------------
[2003-05-03 19:19:27] yllar at nss dot ee
I'm running Redhat 7.1/Linux 2.4.20, php4-STABLE-200305032330, Apache
2.0.45.
Problem still there.
------------------------------------------------------------------------
[2003-05-02 10:09:40] magz at bop dot nu
I'm running Redhat 7.3/Linux 2.4.20, PHP 4.3.2-RC2.
With Apache 1.3.27 I have no problem, but with Apache 2.0.45 I have.
------------------------------------------------------------------------
[2003-03-28 05:00:36] helmut dot chang at tuivelsminne dot at
I'm not sure, if this describes the same bug:
First 'symptoms' where, that sometimes browser showed blank pages on
Production Server (Apache 1.3.26/PHP 4.2.*2*). I thought of an
Apache-Problem, but couldn't find entries in error_log.
Made an upgrade to 1.3.27/4.2.3 -> the same.
Yesterday I made another Upgrade to 4.3.1 and configured Apache to log
also the PHP-Errors. After experiencing the same Problem again, I found
those errors in the error_log, but for files that are *not* included
but called directly by the browser.
So maybe this bug was already in 4.2.2?
------------------------------------------------------------------------
[2003-03-26 12:13:22] daniele at libertyline dot com
I also have this problem; tested with php 4.3.2RC1
------------------------------------------------------------------------
[2003-03-20 09:02:51] webmaster at infotel dot it
i've the same problem, my solution, remove the "/usr/lib/php" from
"include_path" or add it in "open_basedir":
in php.ini:
include_path =
runtime:
include_path = ".:/usr/lib/php:/var/www/htdocs/mylibs"
open_basedir = "/var/www/htdocs:/tmp"
i'm in:
/var/www/htdocs/mydir/myscript.php
my include:
include('mylib.inc');
the script work, but i'have a warning when the php try access in the
"/usr/lib/php" directory, because that dir isn't in "open_basedir"
------------------------------------------------------------------------
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