Error: open_basedir restriction in effect
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:
And would this work?
I hope someone can help.
I found a solution that I think is more related to my problem because I am also using websitebaker, this is the link:
I hope someone can please help me understand this.
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.
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?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread