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

permissions

Posted by shakybaky, 06-26-2008, 04:24 AMI have a vps running centos5 WHM/cpanel I recently...

How is the service ?

Posted by aboovk, 09-04-2002, 01:06 AMHi, I need a resellers plan with 10 virtual domain...

Ioncube on server?

Posted by vito, 01-11-2008, 03:42 PMWhat command line entry do I use to find out if I have...

how to config my domain ???

Posted by hangnguyen, 03-27-2008, 12:50 PMPlease move this post if I posted on wrong box . I...

yaph killed after start

Posted by SysTeam, 09-16-2008, 03:04 PMHi, I have problem. I install Yet Another Proxy Hunter,...