Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    168
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice