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.

Add the following and save the file.

Now run

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 to arun Cancel reply

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