How do I remove open_basedir in Plesk?
The following article explains how to remove open_basedir in Plesk. This may be necessary to run programs that need to access data in directories outside the directory of the program.
To remove open_basedir in Plesk, please follow these steps:
- Connect to your VPS using a shell (SSH) connection.
- Change to the root folder of your VPS using the following
command:
cd ... - Create a new file using the following command:
vi /etc/httpd/conf.d/zzz_openbasedir_removal.conf - Press the insert key and enter the following information:
<DirectoryMatch /var/www/vhosts/(.*)/httpdocs/>
php_admin_value open_basedir none </DirectoryMatch> - Press escape (ESC) to exit insert mode.
- Type :wq to save and exit the file.
open_basedir should now be removed from Plesk.
