Add a new directory to open_basedir?

cbolt

Verified User
Joined
Feb 6, 2008
Messages
28
Hi,
For each site DA creates a open_basdir rule which can be turned on or off for each site in the admin. This is very nice but... how can I add /var/tmp to this rule? The default rule created is: /home/<username>/:/tmp:/usr/local/lib/php/
Where can I change this?
 
Follow the steps outlined here to create custom templates

http://help.directadmin.com/item.php?id=2

For each file you copied to /usr/local/directadmin/data/templates/custom

Change

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

To

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

Trigger the rewrite and you are done.
 
Back
Top