The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

awstats - domain config file overwrittten each night

Discussion in 'General Discussion' started by fikse, Jan 10, 2005.

  1. fikse

    fikse Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    I've modified one domain's awstats config file in:

    /home/domain/tmp/awstats/awstats.domain.conf

    each morning whm/cpanel overrites it with a new copy, and my modifications are gone...

    how can I stop this from happening for just this one domain?

    thanks....
     
  2. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
    Here is the solution I use. Is there is a better way around this?

    - edit the main template at /usr/local/cpanel/etc/awstats.conf
    - add the following to the very last line of the file:
    Include "%AWSTATSDIR%custom.txt"​

    Next time stats are run and /tmp/awstats/awstats.domainname.com.conf is recreated, it will have the "include" line at the end (which will translate to /tmp/awstats/custom.txt)

    Any directives in your include file take precedence over values in the conf file. One note: you'll need to create a custom.txt file in all /tmp/awstats/ directories (even if blank) otherwise an error occurs when viewing stats for a particular domain.

    Rick
     
Loading...

Share This Page