• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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