How to modify the open_basedir setting for one domain.


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Apache Related Information

How to modify the open_basedir setting for one domain.Last Modified: Mar 1, 2015, 11:45 am
To change the open_basedir value when using php in CLI mode (not suPhp), you can do so by going to:

Admin Level -> Custom httpd configuration -> domain.com

In the top text area, insert this one line:

|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp/:/usr/local/lib/php/|

which is the default value in the templates.  Edit the paths in that line to meet your needs.

If you're running CustomBuild 2.0, you may also need to add the path:

/usr/local/php55/lib/php/

to the above list.  Adjust php55 (for php 5.5.x) to the php version you're using.
 
Related Helpfiles
Adding custom httpd.conf code to the VirtualHosts of a domain

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST