NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Hi All,

I recently made some changes to my httpd.conf, however these changes have now been removed, presumably by easyapache or some other cPanel program.

My question is - how can I make changes to httpd.conf without them being overwritten? I tried the easyapache distiller as suggested at the top of httpd.conf, and this worked when restoring the configuration (also suggested at the top of the file), but now - for some reason - those changes have been lost.

Thanks in advance,
Nick
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Hi David,

My changes are in the VirtualHost template in /var/cpanel/userdata, but they're not in httpd.conf. This is strange because they were in httpd.conf yesterday, but something must have happened today to remove them. The only thing I've done today is a force upcp, which I guess could have done something...

Do you have any idea how I can "merge" my changes back into the main httpd.conf? I don't really want to fiddle around without knowing what I'm doing :)

Thanks
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
/var/cpanel/userdata is not a template, it is subject to change.

If you want to change something in a VHost, please read the question "User wants to add something to a virtualhost" in the document David linked to. If you want to add something to the global portion of httpd.conf, then make your change and execute:

/usr/local/cpanel/bin/apache_conf_distiiller --update --main
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Thanks for clarifying - I've got my head round that document and am pleased to say that it is now working :)

Thanks again all.