• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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