Step 1:
Step 2:

How to Fix the 'open_basedir' Error in Plesk Panel

If you're encountering the 'open_basedir' error in Plesk Panel and receiving the following warning message:

Severity: Warning
Message: is_dir(): open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/yourdomain.net/:/tmp/)
Filename: drivers/Session_files_driver.php

You can follow these steps to resolve the issue:


Step 1:

Log in to Plesk Panel and navigate to the PHP settings for your domain.

Step 2:

Find the open_basedir option and paste the following code into the field:

{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/var/lib/php/session

After saving the changes, the error should be resolved.
If you need further assistance, feel free to open a support ticket!

Did you find it useful?
(35 times viewed / 0 people found it helpful)