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

 ID:               51594
 User updated by:  daniel at produktion203 dot se
 Reported by:      daniel at produktion203 dot se
 Summary:          open_basedir reports fatal error within allowed path
-Status:           Feedback
+Status:           Open
 Type:             Bug
 Package:          Safe Mode/open_basedir
 Operating System: FreeBSD 8.0-RELEASE-p2
 PHP Version:      5.3.2

 New Comment:

Sorry but i only have live servers to work with so im not able to test
this out anywhere :\



So my bugtracking help kind of ends when coming to installing new
versions.



But im guessing if it works for you it probably will for me too when the
new version is released.


Previous Comments:
------------------------------------------------------------------------
[2010-04-22 02:15:07] fel...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2010-04-19 00:01:37] daniel at produktion203 dot se

Description:
------------
There seems to be some problem with open_basedir in php 5.3.2 for
freebsd, i used the 5.2 branch before and the exact same config worked
fine then.



open_basedir reports failure eventhough im within the allowed paths



Include paths in php.ini:

include_path = ".:/usr/local/share/pear:/usr/local/lib/php/include"



Testhost in apache:

<VirtualHost *:80>

    DocumentRoot "/home/customers/produktion203/testin.se"

    ServerName testin.se

    php_admin_value open_basedir
/home/customers/produktion203/testin.se:/usr/local/share/pear:/usr/local/lib/php/include:/var/tmp

</VirtualHost>



Test script:
---------------
<?php

phpinfo();

Expected result:
----------------
Show the phpinfo();

Actual result:
--------------
Warning: Unknown: open_basedir restriction in effect. File() is not
within the allowed path(s):
(/home/customers/produktion203/testin.se:/usr/local/share/pear:/usr/local/lib/php/include:/var/tmp)
in Unknown on line 0



Fatal error: Can't load /home/customers/produktion203/testin.se/nfo.php,
open_basedir restriction. in Unknown on line 0


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



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

Reply via email to