/    Sign up×
Community /Pin to ProfileBookmark

Error: open_basedir restriction in effect

Hi,

I have created a website that works fine, but when I try creating an image gallery I get this error message on the page for each image:

Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/media/Galleri3//AdamBskud.jpg) is not within the allowed path(s): (/var/www/vhosts/4601.linux7.testsider.dk/httpdocs:/tmp) in /var/www/vhosts/4601.linux7.testsider.dk/httpdocs/modules/foldergallery/view.php on line 343

It should be the correct path.
I found this link, but I don’t really understand what I should do:
[url]http://www.bigsoft.co.uk/blog/index.php/2007/12/30/fixing-php-s-require-open_basedir-restri[/url]

And would this work?

I hope someone can help.

Thank you.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@kischiauthorApr 09.2013 — Hi Again,

I found a solution that I think is more related to my problem because I am also using websitebaker, this is the link:

http://www.websitebaker.org/forum/index.php?topic=3968.0%253Bwap2

I hope someone can please help me understand this.
Copy linkTweet thisAlerts:
@NogDogApr 09.2013 — It means the open_basedir PHP configuration setting is enabled on that server, which limits what file system directories PHP can interact with on that system (including all read/write operations). If you cannot change it (i.e. you do not have system admin privileges) or cannot get the system admin to change the setting, then you will have to limit any/all file operations to files/sub-directories within the specified open_basedir setting.
Copy linkTweet thisAlerts:
@kischiauthorApr 10.2013 — Hi, I found out that I probably need to delete / in front of media so it would just say media/gallery.

However I can't seem to find the file where to change it, do you have an idea what the file might be called, or how I can search for it?

Thank you
×

Success!

Help @kischi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...