www.webdeveloper.com
Results 1 to 4 of 4

Thread: Error: open_basedir restriction in effect

  1. #1
    Join Date
    Feb 2009
    Posts
    47

    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:
    http://www.bigsoft.co.uk/blog/index....basedir-restri

    And would this work?

    I hope someone can help.

    Thank you.

  2. #2
    Join Date
    Feb 2009
    Posts
    47
    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/in...968.0%253Bwap2

    I hope someone can please help me understand this.

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,354
    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.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

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



Recent Articles