Results 1 to 4 of 4

Thread: Error: open_basedir restriction in effect

  1. #1
    Join Date
    Feb 2009

    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.

    Thank you.

  2. #2
    Join Date
    Feb 2009
    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:


    I hope someone can please help me understand this.

  3. #3
    Join Date
    Aug 2004
    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.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  4. #4
    Join Date
    Feb 2009
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center