• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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