open_basedir off ?

Posted by travelmate2501, 04-20-2009, 09:32 AM
Hi ! I have dedicated server and my panel is lxadmin. Anybody know how can i make off on php.ini the open_basedir ? I have to install one script on my server this open_basedir have to be disable. Thanks

Posted by hiabhilash, 04-20-2009, 11:42 AM
Create a phpinfo page. I hope you know to do that. Browse it and get the location of php.ini. Usually it will be, at /etc/php.ini or /home/httpd/domainname.com/php.ini You can even access the config from lxadmin --> admin --> php config

Posted by CiscoMike, 04-20-2009, 11:58 AM
You can't turn it off per se, you can limit it to a specific directory. I read a post on Google that claims by setting a directive in the vhosts.conf file for httpd that you can set the basedir to "none", not sure if that acheives the same thing but as far as the php.ini file goes, the open_basedir directive is commented out by default and there isn't an on/off switch within php for it.

Posted by travelmate2501, 04-20-2009, 01:34 PM
Thanks both for your answer. I find by my self what i have to do and i make it now off. Nothing can do with php.ini or vhosts.conf (vhosts.conf it's for other panel not for lxadmin). Any way the solution is this: We have to edit this file /home/httpd/mydomain_name.com/conf/lxadmin.gsat.info and on open_basedir lines you change the directory with "none" and then from SSH we have to restart httpd and ready !!!

Posted by jNive, 04-20-2009, 03:36 PM
Can you not just specify additional accessible directories for that certain directory/site, far better than disabling it or opening it up globally

Posted by Deem3n®, 04-21-2009, 07:33 AM
Add to php.ini And restart Apache

Was this answer helpful?

 Print this Article

Also Read

Whats the best for

Posted by zefefre, 01-14-2008, 12:40 AMsorry double thread . mod please delete this one....

using php do display database

Posted by bumpn, 10-23-2012, 05:35 PMi50(dot)tinypic(dot)com/ea332q(dot)jpg now lets say I wanted...

TUN/TAN

Posted by magnuson56, 03-28-2008, 10:43 PMHello, I am a business owner who sells VPS servers....

How can I redirect all traffic which is NOT on a mobile device?

Posted by Chris`, 01-06-2008, 07:44 AMHey WHT! I have another question. I've finally got a...

Can a server log a user out of a script?

Posted by iowaguy1, 03-19-2007, 03:07 PMI am having a site coded for me and I noticed that I get...