Before following the steps below, it is recommended that you gain an understanding of the overall process of statistics calculation.
Plesk uses the following utilities to obtain statistics:
- Statistics utility records monthly statistical data to
- Webalizer/Awstats utilities stores statistics as user friendly files accessible with a web browser.
$PRODUCT_ROOT_D is a directory where Plesk is installed. Usually it is
The Statistics utility performs the following tasks:
- Processes the following log files for the services producing the majority of network traffic:
- Apache logs “
- FTP logs for authorized users
- FTP logs for anonymous users
- Mail service logs
- Apache logs “
Extracts information from the above log files to the
*.processedfile and saves results in the following tables of the psa database:
- Calls the logrotate utility from
$PRODUCT_ROOT_D/logrotate/sbin/which creates a rotation job according to
The cron daemon launches the Statistics utility once a day at 4:07 a.m., using the command:
$PRODUCT_ROOT_D/admin/sbin/statistics >/dev/null 2>&1
Webalizer converts the statistical information in user friendly format(.html).
Webstat : /var/www/vhosts/domain.tld/statistics/webstat FTPstat : /var/www/vhosts/domain.tld/statistics/ftpstat/current/
Plesk 11.5 and higher:
Webstat : /var/www/vhosts/system/domain.tld/statistics/webstat FTPstat : /var/www/vhosts/system/domain.tld/statistics/ftpstat/current/
By default this utility will be executed while running the daily maintenance script.
Web statistic files can be manually generated by the following command:
/usr/local/psa/admin/bin/statistics --generate-domain-webstat -d domain.tld
AWStats configuration files:
Webalizer configuration files:
Try to Calculate statistic for one domain according to #393 How to recalculate statistics for a particular domain article. In case of statistic has been generated successfully, go to next step.
Enable daily maintenance (statistics) script logging according to the #114065 How to enable daily maintenance (statistics) script logging article and monitor it next 24 hours.
If after investigations it is required to regenerate statistic from a particular date use #115476 How to recalculate AWstats statistics from logs for previous months? article .
For other problems please check the articles below or contact Plesk Technical Support:
Useful KB articles:
#393 How to recalculate statistics for a particular domain
#115476 How to recalculate AWstats statistics from logs for previous months?
#114797 How to rerun daily maintenance tasks separately
#118966 Domain statistics are not calculated if the 'cronie' and 'cronie-anacron' packages are installed
#114065 How to enable daily maintenance (statistics) script logging
#123732 Statisic calculation fails with "No such file or directory" error.
#122678 Webalizer statistics is not being udpated: "Unable to restore run data"
#113090 AWStats fails to calculate statistics for domain
#121574 Statistics could not be updated automatically
#124329 Different statistics values in web statistic and in Plesk.