• 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

Plesk Windows open_basedir restriction in effect

Status
Not open for further replies.

bartabc

Basic Pleskian
Hi,

When i try upload a file using php i receive this error:

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(C:\Windows\Temp\php1D1E.tmp) is not within the allowed path(s): (D:\websites\site.com.br\httpdocs\) in

I found the solution for linux servers, but how to fix this on Windows Plesk Servers ?
 
we were troubled with this problem too ... we resolved it by going into the client's control panel, php settings and adding C:\Windows\Temp to the open_basedir ... so it looks like ...

E:\inetpub\vhosts\xyz.com\httpdocs\;C:\Windows\Temp\
 
It works ....

We have got the same error and after using the same ... issue has been resolved ...

Thanks to SupportAXL :))


Support
blog.geek4support.com
 
I´m getting problem here too with Plesk 11.0.9, everything was working fine with Plesk 10, then i upgrade it to the 11 and i start getting problem like this one:

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs/wp-content/plugins/C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs\wp-content\plugins\adminimize/languages/adminimize-en_US.mo) is not within the allowed path(s): (C:/Inetpub/vhosts/MYCLIENTSITE\;C:\Windows\Temp\) in C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs\wp-includes\l10n.php on line 334

OR this:

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs/wp-content/plugins/C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs\wp-content\plugins\adminimize/languages/adminimize-en_US.mo) is not within the allowed path(s): (C:/Inetpub/vhosts/MYCLIENTSITE\;C:\Windows\Temp\) in C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs\wp-includes\l10n.php on line 334

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs\wp-includes\l10n.php:334) in C:\Inetpub\vhosts\MYCLIENTSITE\httpdocs\wp-includes\pluggable.php on line 897

I see that on c:\windows\temp, the permission for psacln and psaadm is only to list content folder, not to read or right, is this right?

I change the open_basedir to Default, but before this was {DOCROOT}\;{TMP}\, i try to as "enter a custom valule" and put there the "{DOCROOT}\;{TMP}\;C:\windows\temp\" but not work too.

So what could be?

Thanks
 
Check this

please check php info of your current server and see difference in open base dir paths.

use php info script.

I hope this helps.
 
Works, i fixed it setting the open_basedir to C:\Inetpub\vhosts\<hostname>\<clientsite>\;c:\windows\temp\

I think that is not the best solution. yes, it's might be a security issue.

OS Microsoft Windows 6.1;build-7601;sp1.0;suite1296;product3
Panel version 10.4.4 Update #57, last updated at Oct 28, 2013 12:06 AM
 
where to change open_basedir

Works, i fixed it setting the open_basedir to C:\Inetpub\vhosts\<hostname>\<clientsite>\;c:\windows\temp\

I think that is not the best solution. yes, it's might be a security issue.

OS Microsoft Windows 6.1;build-7601;sp1.0;suite1296;product3
Panel version 10.4.4 Update #57, last updated at Oct 28, 2013 12:06 AM

Hi,

I tried to change open_basedir in Plesk, but it seems nothing's change !

Do you know which file is modified when we change default Plesk values ? is it a php.ini dedicated to the <client>website ? I can't find the personnalised changes to see if Plesk to the changes or not

thaks for your help

Phil
 
it works

Great, thank you, I set open_basedir to 'none' in Plesk

But I noticed that when I personnalised some php parameters in plesk, and then i come back to default values, tthe defaults values are not restored in the Windows registry, so i changed them manually and it works.
 
Status
Not open for further replies.
Back
Top