user’s httpd.conf: how to make open_basedir feature uncommented by default

Dmitriy Tarasov

Verified User
Joined
Nov 5, 2006
Messages
43
Hello
There is a line in the user’s httpd.conf
#php_admin_value open_basedir ………
Please, advise me how to make open_basedir feature uncommented by default in other words where is situated template in accordance with which user’s httpd.conf is created?
Thank you.
 
Okay, so here I go giving away another of our secrets :) .

As root:
Code:
cd /usr/local/directadmin/data/templates
cp -p virtual_host*.conf custom
cd custom
perl -pi -e 's/#php_admin_value open_basedir/php_admin_value open_basedir/' virtual_host*.conf
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
Jeff
 
Back
Top