If you are getting “There are no domains which have awstats stats to display” while checking the Awstats from your cPanel >> logs >> Awstats. Please check the below steps to resolve this.
Check whether the permission and symlink of below files are correct
[root@server ~]# ls -lah /usr/local/cpanel/3rdparty/bin/awstats.pl —— This should have 755permissions
[root@server ~]# ls -lah /usr/local/cpanel/base/awstats.pl ——————- Should be have a symlink to /usr/local/cpanel/3rdparty/bin/awstats.pl
If the permission is incorrect, correct the permission and restart the cPanel service.
[root@server ~]#/etc/rc.d/init.d/cpanel restart
After this, run the following command,
[root@server ~]# /scripts/runweblogs <username> ——- cpanel username
Restart the cpanel services once again.
[root@server ~]# /etc/init.d/cpanel restart
Now You are good to go. check it again and it will be working fine showing the domain name
Welcoming any comments ….