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.

  1. Login to your Plesk Control Panel.
  2. From the left menu click on Websites & Domains.
  3. Find the domain name for which you need to disable PHP open_basedir
  4. Click on the domain name to expand.
  5. Click on PHP Settings.
  6. 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

Need help with Linux Server or WordPress? We can help!

One thought on “Disable open_basedir in plesk server

Leave a Reply

Your email address will not be published. Required fields are marked *