How to make custom awstats.conf survive upcp?

norelidd

Well-Known Member
Jan 15, 2007
173
1
168
I have a made a number of modifications to my server's awstats.conf file. But they are always overwritten by the upcp updates. How can I keep those updates from overwriting my custom awstats.conf?

Additionally, how can I force a regeneration of the subdomain's awstats.conf files from my master awstats.conf?
 

david510

Well-Known Member
Aug 22, 2004
473
0
166
You may set attribute bit to the awstats conf file for which you don't want cpanel to modify in future.

chmod +a /path/to/the/awstats.conf

When you want to edit the file, unset it using

chmod -a /path/to/the/awstats.conf