• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Alternate open_basedir problem

P

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:
/home/vhost
/home/files

in vhost there are symlinks for instance:
/home/vhost/domain.com/subdomains/sub/httpdocs

the httpdocs dir is the symlink to
/home/files/somedirectory


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

Code:
(/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
 
Back
Top