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

Esta resposta lhe foi útil?

 Imprimir este Artigo

Veja também

Help copy sql colume

Posted by jimmysback, 03-04-2010, 05:23 PMHi guys i need some help desining a sql query what i...

SHARING AN SSL CERTIFICATE

Posted by kreati, 01-12-2008, 09:55 PMI have an ssl certificate installed on my main server. How...

How turn off allow_url_fopen and short_open_tag in PHP4/5 - module CGI

Posted by KamilPRO, 07-15-2007, 04:14 PMHow turn off allow_url_fopen and short_open_tag in PHP4/5...

dba_insert() not working

Posted by latheesan, 01-09-2008, 08:30 AMHello, I am trying to create a class to handle dba in...

How to stop apache from doing url decoding?

Posted by mrzippy, 04-20-2009, 03:12 PMHello, I have an interesting problem.. there is a...