• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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