If you have installed the nginxCP plugin on your cPanel server, you will no undoubtedly have a problem with AwStats and Webalizer running. If both stats counters are not working, do the following to fix the problem.
Enable Piped Log Configuration
WHM -> Apache Configuration -> Piped Log Configuration -> Enable Piped Apache Logs -> Save Now
Once you have done this, you will need to re-build the VirtualHosts on Nginx, and restart the service. Go nginxcp on WHM –
Once completed, restart nginx
service nginx restart
You will then need to restart Apache
service httpd restart