1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Alternate open_basedir problem

Discussion in 'Plesk for Linux - 8.x and Older' started by p.faas, Jul 5, 2007.

  1. p.faas

    p.faas Guest

    Hi, I've got a bit of a problem with my open_basedir settings.

    I know how to change the vhost file in the conf dir of the domain but for some reason I'm having troubles getting it to work.

    On the server I've got it set up like this:

    in vhost there are symlinks for instance:

    the httpdocs dir is the symlink to

    Now I want to use a PHP script to upload files. But when I try to upload I get the following error:

    (/home/vhosts/domain.nl/subdomains/online/httpdocs/uploads/ds_computercode_0_400.jpg) is not within the allowed path(s): (/home/files/somedir:/home/vhosts/domain.nl/subdomains/sub/httpdocs:/home/vhosts/domain.nl/subdomains/sub/httpdocs/uploads:/home/somedir/uploads:/tmp) in ... on line ... 
    Does anyone have an idea of what might be wrong? I even added the uploads folder explicitly to the vhost file.

    Thank you in advance