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

    https://survey.webpros.com/

Plesk Panel && PHP Warning: file_exists(): open_basedir restriction

Andrei C

Regular Pleskian
Dear Support,


Many web-sites have next php warnings:
---------------------------
PHP Warning: file_exists(): open_basedir restriction in effect. File(\XXXX\index.php) is not within the allowed path(s): (C:/Inetpub/vhosts//XXXXXXXXXX\;C:\Windows\Temp\) in
----------------------------

When I change in php.ini next string:
open_basedir = "C:/Inetpub/vhosts//XXXXXXXXXX\;C:\Windows\Temp\"
to
open_basedir = "C:\Inetpub\vhosts\xxxxxxxxx\;C:\Windows\Temp\"

there are "No php warning"

Could you tell me, How it's right use "open_basedir" on php.ini?
 
Just use forum search engine and you will find a lot of answers on your questions :)
 
Back
Top