ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Hi

How do I add hourly/or build hourly stats for cpanel awstats for cpanel?

when trying to go there, it just says:

Last Update:Never updated (See 'Build/Update' on awstats_setup.html page)


I don't know if there a cpanel, and I'm not too familar with awstats. I also don't want to break my cpanel trying things out. :)

Thanks in advance
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,032
1,741
363
cPanel Access Level
Root Administrator
Hey there! Can you let me know which screen you're seeing that message on? Typically this would be configured in WHM >> Statistics Software Configuration as you are able to change the processing frequency directly from that page.
 

ca2236

Well-Known Member
Feb 2, 2018
244
25
28
Nebraska
cPanel Access Level
DataCenter Provider
Hi

Thank you can get back to me, it was on the main awstats page where you can set the frequency with the drop down boxes, It then displays above it, with the message. I can provide a screenshot if needed. I will check out the section that you suggested. :)
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,032
1,741
363
cPanel Access Level
Root Administrator
I personally don't have any other ideas. It's one of those "clicking the button should just work" type of things, since that is what it's there for. If there's not anything obvious in the main cPanel log (/usr/local/cpanel/logs/error_log) we'd need to check that on our end since it seems that something is wrong with the tool itself.
 

InternetTim

Registered
Aug 15, 2014
3
2
53
cPanel Access Level
Website Owner
This happened to me a few months ago:

Check here:

ls -lart /usr/local/apache/domlogs/<name of account>

If the size of all the domlog files is 0. Awstats isn't showing any data.

I checked it further and domlogs were not generating due to the issue with the log format. I fixed it by replacing %h with %a in WHM > Apache Configuration > Global Configuration > LogFormat.

I had to comment this line out in the file /usr/local/apache/conf/includes/pre_virtualhost_global.conf

(LogFormat "%a %l %u %t \"%r\" %s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined.)

After that, I changed %h to %a in the Apache config and then rebuild the config.

This seems to have fixed the issue with the domlogs. Now, domlogs were updating.

I hope this helps.