#34656 [Fbk->Opn]: open_basedir restriction in effect although paths are set correctly

From: Date: Tue, 13 Dec 2005 17:00:44 +0000
Subject: #34656 [Fbk->Opn]: open_basedir restriction in effect although paths are set correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90377@lists.php.net to get a copy of this message
 ID:               34656
 User updated by:  wolfram at schlich dot org
 Reported By:      wolfram at schlich dot org
-Status:           Feedback
+Status:           Open
 Bug Type:         Safe Mode/open_basedir
 Operating System: Linux 2.2.16 i586
 PHP Version:      4.4.1
 New Comment:

Unfortunately it's impossible to use any other version of PHP than 4.x
on this machine :-(


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

[2005-12-13 17:41:53] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip



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

[2005-11-30 15:02:53] wolfram at schlich dot org

Do you need more information?

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

[2005-11-25 13:27:23] wolfram at schlich dot org

just tried http://snaps.php.net/php4-STABLE-200511251208.tar.gz
with
open_basedir in php.ini -- no luck:

Warning: touch(): open_basedir restriction in effect.
File(/tmp/f5_test) is not within the allowed path(s): (/tmp/) in
/home/sites/site15/web/write_tmp.php on line 3

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

[2005-11-01 22:34:00] sniper@php.net

Does it work if you set the open_basedir in php.ini ?


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

[2005-11-01 15:01:35] wolfram at schlich dot org

Just tried with the freshly released 4.4.1, without luck:
--8<--
Warning: fopen(): open_basedir restriction in effect.
File(/tmp/foo.bar) is not within the allowed path(s):
(/home/sites/site81/:/tmp/:/usr/share/pear/) in
/home/sites/site81/web/fopen.php on line 3

Warning: fopen(/tmp/foo.bar): failed to open stream: Operation not
permitted in /home/sites/site81/web/fopen.php on line 3
--8<--

--8<--[ access.conf ]--8<--
<DirectoryMatch "/home/sites/site81/">
php_admin_value open_basedir
/home/sites/site81/:/tmp/:/usr/share/pear/
</DirectoryMatch>
--8<--

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

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/34656

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


Thread (22 messages)

« previous php.bugs (#90377) next »