From:             matzrek at shw-networks dot de
Operating system: Suse Linux 8.2 / Apache 1.3.27
PHP version:      4.3.2
PHP Bug Type:     Apache related
Bug description:  Strange Open Base Dir Restriction Errors

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 bug report at http://bugs.php.net/?id=24282&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24282&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24282&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24282&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24282&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24282&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24282&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24282&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24282&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24282&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24282&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24282&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24282&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24282&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24282&r=gnused

Reply via email to