Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2003
    Posts
    114

    Default awstats - domain config file overwrittten each night

    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. #2
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    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

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 11-09-2009, 06:18 AM
  2. awstats error Couldn't open config file
    By cLub2Share in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-12-2006, 11:38 PM
  3. Own AWStats Config-File
    By binaer in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-05-2006, 03:05 AM
  4. Blank AWStats Config File
    By trparky in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-06-2004, 01:19 AM
  5. Error: LogFile parameter is not defined in config/domain file
    By myusername in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-13-2004, 07:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube