Welcome to WebmasterWorld Guest from 54.166.179.165

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

open basedir error

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

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 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)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 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)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 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)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 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)

New User

10+ Year Member

joined:June 21, 2005
posts: 26
votes: 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"
</Directory>

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)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


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