Disabling Open_basedir Restriction
There are two ways to disable openbase_dir restriction in php and i will discuss them one by one below.
Site wide
Open your php.ini and look for the open_basedir line and comment it.
Save your php.ini changes and restart your web server
By specific site
This configuration works only on apache web servers.
Open your apache web server’s configuration file (httpd.conf) and at the bottom type this line.
php_admin_value open_basedir “none”
Save and restart your apache web server.
apachectl -k restart
or
service httpd restart (in RH)
That’s it, sweet and straight. Works with Cpanel and Plesk.
Spread the word
del.icio.us Digg Furl Google StumbleUpon Technorati Windows Live Yahoo! Help












3 Comments on Disabling Open_basedir Restriction »
Alien @ 11:29 pm:
An instruction is very well.
Thanks
Jeff @ 4:18 pm:
Thanks for your helpful site. However, please be aware that your blog software is apparently corrupting your command examples, and is replacing the double quote characters (”, ascii hex 22) with “idiot quotes” (”) breaking your code example in the process.
In order to avoid typos, people do copy-paste commands, and if you have mangled commands on your page, this leads to needless frustration.
MUHAMMAD SALMAN @ 6:02 am:
HI , NICE POST..
BUT THERE IS PROBLEM WITH ME
I WANT TO ACESS THE WORDPRESS wp-config.php file in
my index page,
after disabling the open_basedir settings as you mention in the apache httpd.conf file
i still got the error
plz help me