• 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.

PHP open_basedir not working properly

RobertoV

New Pleskian
Hello,

My config is:
Windows Server 2008 Standard 32 bits SP2
Parallels Plesk Panel 10.4.4 Update #37


I'm having the typical open_basedir problem that doens't allow to an account to write in the folder of other account.

I've been solving this in other servers adding the path in the open_basedir config field of the account that wants to write working properly, but in this server that doesn't work.

I receive this error:

--------------------------------------------------------------------------------------------------------------------
PHP Warning: move_uploaded_file(): open_basedir restriction in effect. File(c:/inetpub/vhosts/xxxxx.com/httpdocs/xxxxx/xxxxx.jpg) is not within the allowed path(s): (c:/inetpub/vhosts/xxxxx.com/httpdocs/xxxxx/) in C:\Inetpub\vhosts\yyyyy.xxxxx.com\httpdocs\_uploader.php on line 31
--------------------------------------------------------------------------------------------------------------------

As you can see in the error the script says that I can't write in a folder because that folder is not on the open_basedir, but yes there it is.

There's any way to disable this on windows? Yes, I know that it's a security issue, but that's not a problem for this server at all.

Thanks in advance.
 
Last edited:
My problem was solved by the Parallels team with a support ticket of $75.

After weeks of investigation they discover that there was a bug, so you should change the values manually in the registry at HKLM>SOFTWARE>PHP>Per Directory Values>C>Inetpub>vhosts>yourdomainname.com>httpdocs
 
There's no automatic process to solve it, just modify the open_basedir keyword value in your registry.
 
Hi!

Is there version of the Plesk Control Panel for Windows that fixed this bug?

I have version 11.0.9 #28, and found the same problem, I had to manually edit the Windows Registry values​​.

Plesk team, already exists definitive solution?
 
Back
Top