|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-01 15:01 UTC] wolfram at schlich dot org
[2005-11-01 22:34 UTC] sniper@php.net
[2005-11-25 13:27 UTC] wolfram at schlich dot org
[2005-11-30 15:02 UTC] wolfram at schlich dot org
[2005-12-13 17:41 UTC] sniper@php.net
[2005-12-13 18:00 UTC] wolfram at schlich dot org
[2005-12-13 20:16 UTC] sniper@php.net
[2005-12-13 22:00 UTC] wolfram at schlich dot org
[2005-12-14 06:29 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ Warning: touch(): open_basedir restriction in effect. File(/tmp/f5_test) is not within the allowed path(s): (/home/sites/site15/:/tmp) in /home/sites/site15/web/write_tmp.php on line 3 Warning: fopen(): open_basedir restriction in effect. File(/tmp/f5_test) is not within the allowed path(s): (/home/sites/site15/:/tmp) in /home/sites/site15/web/write_tmp.php on line 4 Warning: fopen(/tmp/f5_test): failed to open stream: Operation not permitted in /home/sites/site15/web/write_tmp.php on line 4 Warning: fwrite(): supplied argument is not a valid stream resource in /home/sites/site15/web/write_tmp.php on line 5 Warning: fclose(): supplied argument is not a valid stream resource in /home/sites/site15/web/write_tmp.php on line 6 Reproduce code: --------------- --8<--[ write_tmp.php ]--8<-- <?php $tmpfile = "/tmp/f5_test"; touch($tmpfile); $fp = fopen("$tmpfile","w"); fwrite($fp, "test ...."); fclose($fp); ?> --8<--[ httpd.conf ]--8<-- <DirectoryMatch "/home/sites/site15/"> ## doesn't work php_admin_value open_basedir /home/sites/site15/:/tmp ## also doesn't work # php_admin_value open_basedir / ## works, but is not what's desired # php_admin_value open_basedir none </DirectoryMatch> --8<-- Also tried to set open_basedir within the VirtualHost, didn' t work either. Expected result: ---------------- no errors Actual result: -------------- open_basedir errors