• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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