How to disable open_basedir for one website

Category: ISPManager  

First of all be aware that it’s not secure to disable open_basedir, however some applications really require this to be turned off.

Here are steps to disableĀ open_basedir for a single website:

1. Open apache config file (/etc/apache2/apache2.conf on Debian/Ubuntu , or /etc/httpd/conf/httpd.conf on CentOS)

2. Find VirtualHost for a domain name

3. Remove existing value for open_basdir and set it to none:

php_admin_value open_basedir “none”

4. Restart apache, on debian/ubuntu:

/etc/init.d/apache2 restart

on CentOS:

/etc/init.d/httpd restart

Share
Save this article

Comments are closed.

Other Articles from "ISPManager"