How can I freely edit an user's httpd.conf

Tertsi

Verified User
Joined
Mar 2, 2007
Messages
39
How can I freely edit an user's httpd.conf so that the changes stick?

I want to edit /usr/local/directadmin/data/users/$user/httpd.conf
by changing all of these lines:
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'

to be: php_admin_value sendmail_path '/usr/sbin/sendmail -t -i'

It seems I can't do that without doing some restarting, modifying some template or something like that.
 
I decided not to do this after all but I might need this later. I found a way that might do it, does it do it?

....the templates are located in /usr/local/directadmin/data/templates/virtual_host*.conf. If you want to make changes, first copy them to the custom folder, then make changes to the copied file (main virtual_host*.conf files will be overwritten during updates. custom virutal_host*.conf files take priority).

For the new templates to take effect, you have to run:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
 
But it works for ALL users. If you want the change to take place for one user only, well the admin can make custom httpd changes on a per-user basis from the main admin login.

Jeff
 
That feature is incredibly confusing and seems to have no help file. I thought you'd just be able to add, not edit some lines using it. So how do you use that feature?
 
You're right, you just add. Depending on where they get put, they may be used by httpd. httpd will always use the last entry. Do they get entered before or after what you want to change?

Jeff
 
Back
Top