• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

open_basedir restriction in effect

W

webcanada

Guest
OK, I don't think I quite understand how open_basedir works. If there is a path in the "allowed paths", shouldn't copy() work for any folders in a sub-folder of that path?

Here is the error I am getting:

Warning: copy(): open_basedir restriction in effect. File(/home/plesk/home/vhosts/mydomain.com/httpdocs/sdrww/images/12345.jpg) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.com/httpdocs:/tmp) in ...

Do I have to specifically include /home/plesk/home/vhosts/mydomain.com/httpdocs/sdrww/images in the allowed paths? Or should hit work already?

Thanks,
Peter.
 
Just curious...but I've never seen a path like that to a vhosted domain...perhaps you have something set up improperly in whatever software you are trying to run.

This looks strange to me:

/home/plesk/home/vhosts/mydomain.com/httpdocs/sdrww/images

the path should be /home/httpd/vhosts/mydomain.com/httpdocs/sdrww/images

I would say that you have not installed the software you are trying to use properly.

look for some sort of configuration information or set up file where you can enter the proper path for whatever script you are running
 
Aha! Yes, you're right. The problem was I had hardcoded the directory path. I replaced it with $_SERVER["DOCUMENT_ROOT"] and it works now!
 
Back
Top