ID:               24282
 Updated by:       [EMAIL PROTECTED]
 Reported By:      matzrek at shw-networks dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache related
 Operating System: Suse Linux 8.2 / Apache 1.3.27
 PHP Version:      4.3.2
 New Comment:

Do you set open_basedir in every vhost? 
What is open_basedir set to in your php.ini?

What exactly is the open_basedir line like in your httpd.conf for the
vhost you get this everytime for the first page request? Do you set any
other php ini options there?

Do any .htaccess files set any php ini options?



Previous Comments:
------------------------------------------------------------------------

[2003-06-21 20:49:35] matzrek at shw-networks dot de

Description:
------------
Executing my PHP Script sometimes produces errors like this :

Warning: Unknown(): open_basedir restriction in effect.
File(/home/Domain1.com/htdocs/admin/index.php) is not within the
allowed path(s): (/home/Domain2.de/) in Unknown on line 0 

if i hit Reload the scripts will work fine. Of couse the script doesn't
try to include files from /home/Domain2.de. Its not a problem of a
spezial script, because many customers complained about this.

Setting php_admin_value open_base_dir to none or "/" or "/home" doesnt
solve this problem. safemode is disables (in vhost)

Seems to be the same bug discussed here
http://bugs.php.net/bug.php?id=19292 for a former Version


Reproduce code:
---------------
<% phpinfo() ; %>


Expected result:
----------------
PHP Info Page

Actual result:
--------------
requesting www.shw-networks.de/info.php : this error sems to apear only
at the first page request !!


Warning: Unknown(): open_basedir restriction in effect.
File(/home/shw-network.de/htdocs/info.php) is not within the allowed
path(s): (/home/xyz.de/) in Unknown on line 0

Warning: Unknown(/home/shw-network.de/htdocs/info.php): failed to open
stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening
'/home/shw-network.de/htdocs/info.php' for inclusion
(include_path='.:/usr/share/php') in Unknown on line 0


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24282&edit=1

Reply via email to