Statistics collection errors in requests to sites
Symptoms
- No statistics report is displayed for users
- All data in the statistics is null
- One unique visitor is displayed in the statistics
Causes
- Incorrect permissions set for the directory with statistics
- No
mod-rpaf
module - Incorrect logging parameters
Solution
Incorrect permissions for the directory with statistics
Make sure permissions for the directory /var/www/<owner-name>/data/www/<site-name>/webstat
are set to 755
or [drwxr-xr-x]
.
No mod-rpaf module
Check if the module is installed on your server by connecting to the server via SSH and running the following command:
dpkg -l | grep rpaf
- for Debian-based systems;yum install mod_rpaf
- for RHEL-based systems.
If the module is not installed, install it using the command:
apt-get install libapache2-mod-rpaf
- for Debian-based systems;rpm -qa | grep rpaf
- for RHEL-based systems.
Incorrect logging parameters
Open the Apache configuration file of the target site in the “Sites” - “Configuration files” section and make sure that the path to the log file and the combined
parameter are specified for the CustomLog
directive.
Next, check that the value for the LogFormat
directive in the Awstats configuration file at /etc/awstats/awstats.conf
is set to “1”.