Awstats is a powerful statistics tool and it is a built-in component on plesk panel, you can active awstats by choosing it at website settings. By default, plesk update awstats everyday, you have to wait for 24 hours before awstats generate the graphic results. In this tutorial, I will show you how to update awstats hourly in two steps.
Log onto the Plesk control panel and navigate to “Tools & Settings”–>”Scheduled Tasks”, add a task by clicking “Add Task” button.
Choose “Run a command” for Task Type option.
Fill in the “Command” blank with /usr/local/psa/admin/sbin/statistics
The command above will update all websites, it may consumes a lot of server resources. You can assign a website in the command, please replace yeool.com with your own domain.
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yeool.com
Then set the frequency, description, notification, and make sure the “Active” option is selected on the top.
Here is a screenshot.
Now, awstats will be updated hourly.
There is a tutorial online suggesting move file ‘awstats’ in /etc/cron.daily/ to /etc/cron.hourly/, I’ve tried but it didn’t work. I asked Plesk Support on twitter and they suggest me to set up a cron job to implement this task.