If you have seen an error in awstats ”There are no domains which have awstats stats to display” and awstats will not display any stats for any domains in the server you need to the following to fix the issue. If the server is a linux server with cpanel/whm installed, you need to run a cpanel script. ie
/scripts/runweblogs username
It will update the awstats for the specified user. If you want to update the stats for all the domains in the server you can
use the below small script
cd /var/cpanel/users
for i in * ; do /scripts/runweblogs $i; done
Then you can see all the domain starts updating the stats regularly.