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!

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:
    465
    Likes Received:
    0
    Trophy Points:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    465
    Likes Received:
    0
    Trophy Points:
    166
    but when I click on "Update now" link in awstats report page which log file is processed?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    It processes the domain access log for the domain name. EX:

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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