Disabling php open_basedir protection

MethOd63

Active Member
Aug 20, 2007
33
0
56
Hi.
i want to disable php open_basedir protection but i dont know where is this option, someone can help ??
 

arunsv84

Well-Known Member
Oct 20, 2008
372
1
68
127.0.0.1
cPanel Access Level
Root Administrator
There are two ways to disable open_basedir restriction in php.

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.

service httpd restart

Hope this helps.. :)