Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

File Exists Warning


Go to End


3 Posts   1656 Views

Avatar
zenmonkey

Community Member, 545 Posts

3 December 2009 at 5:21am

I'm getting the following error when accessing the admin panel with dev mode on

[Warning] file_exists() [function.file-exists]: open_basedir restriction in effect. File(/misc/images/treeicons/TypographyTestPage-openfolder.gif) is not within the allowed path(s): (/var/www/vhosts/cupidology.net/httpdocs:/tmp)

Avatar
dalesaurus

Community Member, 283 Posts

3 December 2009 at 5:29pm

Your PHP settings have turned safe mode on. You will need to add your directory to the basedir directive or disable safe mode

http://www.php.net/manual/en/ini.core.php#ini.open-basedir

Here is an example of using a .htaccess file to do it:
http://www.mydigitallife.info/2007/03/15/php-scripts-open_basedir-restriction-in-effect-error/

Avatar
davidm2010

Community Member, 107 Posts

9 December 2009 at 1:54am

That worked with the orignal error, but brings up a new one. "No input file specified. " Then the admin page hangs up.