If you’re trying to run an application or function and get an open_base_dir error message, open your vhost.conf file and put this code in there:
<Directory /var/www/vhosts/yourdomainname/httpdocs>
php_admin_value open_basedir none
</Directory>
<Directory /var/www/vhosts/yourdomainname/httpdocs>
php_admin_value open_basedir none
</Directory>
The vhost.conf file is usually here:/var/www/vhosts/yourdomainname.com/conf/
Then run the following command:
/usr/local/psa/admin/bin/websrvmng -a -v
and finally reload the web server:
/etc/init.d/httpd reload
