|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51594 open_basedir reports fatal error within allowed path
Submitted: 2010-04-19 00:01 UTC Modified: 2010-05-27 21:54 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: daniel at produktion203 dot se Assigned:
Status: Not a bug Package: Safe Mode/open_basedir
PHP Version: 5.3.2 OS: FreeBSD 8.0-RELEASE-p2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: daniel at produktion203 dot se
New email:
PHP Version: OS:


 [2010-04-19 00:01 UTC] daniel at produktion203 dot se
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/"
    php_admin_value open_basedir /home/customers/produktion203/

Test script:

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/ in Unknown on line 0

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-22 02:15 UTC]
-Status: Open +Status: Feedback
 [2010-04-22 02:15 UTC]
Please try using this snapshot:
For Windows:

 [2010-04-22 09:32 UTC] daniel at produktion203 dot se
-Status: Feedback +Status: Open
 [2010-04-22 09:32 UTC] daniel at produktion203 dot se
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.
 [2010-05-12 16:06 UTC]
-Status: Open +Status: Feedback
 [2010-05-12 16:06 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2010-05-27 21:19 UTC] daniel at produktion203 dot se
-Status: Feedback +Status: Closed
 [2010-05-27 21:19 UTC] daniel at produktion203 dot se
Just posting the solution to this problem if someone is having the same issue as me.

The problem appeared to be due to eaccelerator, you have to add --without-eaccelerator-use-inode to your configargs in your Makefile for eaccelerator and reinstall and it will all be working like a charm again
 [2010-05-27 21:54 UTC]
-Status: Closed +Status: Bogus
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Aug 26 09:01:26 2019 UTC