• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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