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.

rebuild awstats last month

Discussion in 'General Discussion' started by upsforum, Oct 29, 2014.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    I accidentally deleted the file awstats102014.mydomain.txt from /home/user/tmp/awstats and now I lost October month in awstats, is possible rebuild this month with /home/username/logs/mydomain-Oct-2014.gz file?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have any backups of the account so you can restore the Awstats data directly? If not, you can try extracting that log archive and restoring the data to the /usr/local/apache/domlogs directory. Once you do that, you would generate statistics for the account with a command such as:

    Code:
    /scripts/runweblogs $username
    Thank you.
     
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    but when I click on "Update now" link in awstats report page which log file is processed?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It processes the domain access log for the domain name. EX:

    /usr/local/apache/domlogs/$domain.com

    Thank you.
     
Loading...

Share This Page