Web-server files


FilesCentOSDebian, Ubuntu
Apache configuration file/etc/httpd/conf/httpd.conf/etc/apache2/apache2.conf
Nginx configuration/etc/nginx/nginx.conf/etc/nginx/nginx.conf

Issues with website statistics collection


Statistics is not displayed to a user

Statistics for a WWW-domain is stored in /var/www/<WWW-domain owner>/data/www/<WWW-domain>/webstat. Make sure that the files in this directory belong to the user.

Statistics displays only one unique visitor

This problem can occur if both Nginx and Apache are installed. To resolve the issue, install mod_rpaf for Apache.

Zero statistics

Check that the AWStats configuration file for the WWW-domain /etc/awstats/awstats.<WWW-domain>.conf has the parameter:

Awstats configuration file

LogFormat=1
BASH

Check the Apache configuration file for the WWW-domain <path to the Apache directory>/conf/vhosts/<WWW-domain owner>/<WWW-domain> contains the forward — "combined":

Apache configuration file

CustomLog /var/www/httpd-logs/<WWW-domain>.access.log combined
CODE

How to exclude my IP from statistics

Add the following string into the configuration file /etc/awstats/awstats.<WWW-domain>.conf.

Awstats configuration file

SkipHosts="<IP address>"
CODE

Note:

For more information about Awstats issues please refer to the official website.