• 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

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