• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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 but file is in the correct dir

CFI

New Pleskian
I am trying to move some sites to a new server and I am getting the following Error:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(configuration.php) is not within the allowed path(s): (C:\Inetpub\vhosts\domain.com\domains\domain.com\www\;C:\Windows\Temp) in C:\Inetpub\vhosts\domain.com\domains\domain.com\www\index.php on line 18

But the configuration.php file is in C:\Inetpub\vhosts\domain.com\domains\domain.com\www\!

I am nearly getting cracy here as this makes absolutely no sense to me.
I can even set the open_basedir value to none and still get the same error.
Same also for using PHP 5.2 or 5.3.

The only thing which got me a little bit further was setting a dirname(__FILE__) in front of the call in index.php on line 18, but this is no solution as I can't alter all file references in the whole CMS. Because of this I also tried to add the www folder to the include path without any luck.

Everything was working fine on the old machine (running CentOS).

UPDATE: Just found out, that the Working Directory is wrong. It is the directory of the php executable not the main script or DOCROOT, but I have no idea how to fix that...
UPDATE2: It works when using CGI instead of FastCGI.
 
Last edited:
Did you find a way to resolve this issue while running PHP via FastCGI? I have the same issue following update of Plesk Panel 9.5.4 to 11.0.9 plus installation of PHP 5.3.

Websites that were working fine on PHP 5.2.17 FastCGI now fail with error: open_basedir restriction in effect when require_once('file.inc') is called.

Any idea how to resolve?
 
No, I am running my pages as CGI at the moment and will switch to ASP.NET soon so I am not activly searching a solution anymore...
 
Back
Top