Disable open_basedir in plesk server
open_basedir is a PHP security feature. With open_basedir enabled, your web application can only access files within specifically allowed folders. If your application tries to access files from a folder that is not allowed, the application fails with an error message.
To disable open_basedir in Plesk do the following.
- Login to your Plesk Control Panel.
- From the left menu click on Websites & Domains.
- Find the domain name for which you need to disable PHP open_basedir
- Click on the domain name to expand.
- Click on PHP Settings.
- On PHP Settings page, find open_basedir. From the drop down select None.
Method 2
To do this in the command line, do the following
create a file vhost.conf in conf folder of the site.
vi /var/www/vhosts/yourdomain.extn/conf/vhost.conf
Add the following and save the file.
php_admin_flag engine on php_admin_value open_basedir none
Now run
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain yourdomain.com
This will disable open_basedir.
See Plesk
thanks. helped