• 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 Restriction - Adding Paths Not Working

Mr Fett

Basic Pleskian
Hi all,

I'm trying to use server side includes in a PHP website but am getting the error open_basedir restriction in effect.

I've tried going in to the PHP Settings for the website and have selected the predefined option

{DOCROOT}{/}{:}{TMP}{/}

Which as I understand it should allow access to all files within my httpdocs folder but I still get the error:

PHP Warning: include(): open_basedir restriction in effect. File(/sparklyphp/cms/inc/checkAdminLogin.php) is not within the allowed path(s): (F:\PLESK\WWW\bviwebsitedesign.com\httpdocs\;C:\Windows\Temp\) in F:\PLESK\WWW\websitedesign.com\httpdocs\sparklyphp\cms\index.php on line 1

The thing is I know 100% that the file it's having a problem with is in a subfolder of the F:\PLESK\WWW\websitedesign.com\httpdocs\ folder (the full F:\PLESK\WWW\websitedesign.com\httpdocs\sparklyphp\cms\inc\checkAdminLogin.php).

Has anyone else managed to solve this?

Thanks

Bob
 
in plesk you will get default option in that perticular domain >> website domains >> php settings.
 
Back
Top