homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

open basedir error

 10:09 pm on Oct 26, 2009 (gmt 0)

We are trying to install a third party app that uses php. However, I am getting this warning when I try to run the file that checks to make sure everything is ok.
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(c:\path\sessiontemp) is not within the allowed path(s): (e:\Websites\pathToMySite) in e:\Websites\pathToMySite\www\check.php on line 39.
I should note that we have multiple sites that have been created by hosting controller. They all point to a path that is something like e:\websites\somesite\www or e:\websites\somesite2\www. I edited the php.ini file to set the open_base dir to c:\path\sessiontemp and I know that folder exists. What am I doing wrong? Thanks,



 8:11 pm on Oct 27, 2009 (gmt 0)

Does anyone have some help on this. I am using IIS and I am completely stumped. Thanks,


 9:01 pm on Oct 27, 2009 (gmt 0)

Sorry Andrew, the only time I ever encounter these is when I'm trying to write to a path that . . . is not writable, either by owner permissions, directory permissions, or server configuration. I'm sure you checked that too.


 9:55 pm on Oct 27, 2009 (gmt 0)

Yes, I am going crazy on this one. I had even set the permissions to everyone full control for a while to see if that would fix it and it didn't. What bothers me is it is just a warning. The third party app seems to be working fine even though this error happens so I may end up just crossing my fingers.


 11:39 pm on Oct 27, 2009 (gmt 0)

Not sure about IIs. On Apache, I'd go to the the directory where my conf file is for that domain. In it, I put the following:

<Directory /path/to/your/web_root>
php_admin_value open_basedir "/path/you/need:/another/path/you/need"

Then restart Apache. Perhaps IIS has a similar approach? The main thing would be to put in the directive:
php_admin_value open_basedir "/your/path/"


 1:50 pm on Oct 28, 2009 (gmt 0)

I've seen that everywhere, I just can't find a Windows equivalent.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved