- Plesk for Linux
Statistics utility records monthly statistical data to
tables and located at:
The utility performs the following tasks:
- Processes the following log files for the services producing the majority of network traffic:
- Apache logs under
- FTP logs for authorized users
- FTP logs for anonymous users
Mail service logs
Extracts information from the above log files to the
*.processedfile and saves results in the following tables of the
Calls the logrotate utility from
/usr/local/psa/logrotate/sbin/which creates a rotation job according to
The cron daemon launches the statistics utility once a day, using the command:
# /usr/local/psa/admin/sbin/statistics > /dev/null 2>&1
The utility for that is
Webalizer converts the statistical information in user friendly format (
By default this utility will be executed while running the daily maintenance script:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
Web statistic files can be manually generated by the following command:
# /usr/local/psa/admin/bin/statistics --generate-domain-webstat -d example.com
AWStats configuration files located at:
Webalizer configuration files located at:
Try to calculate statistic for one domain according to #213936305 article. In case when statistics have been generated successfully, go to next step.
Enable Plesk debug as described in the article #213408889 article and monitor it within the next 24 hours.
If after some investigations it is required to generate statistic for the previous months use #213901965 article.
For other issues please check the articles below or contact Plesk Technical Support :
Useful KB articles
#213936305 - How to recalculate statistics for a particular domain on Plesk for Linux?
#213901965 - How to recalculate AWStats statistics from logs for previous months
#213950065 - How to rerun daily maintenance tasks separately
#213394209 - How to enable logging of daily maintenance task
#213408789 - Unable to open AWStats web statistics page in Plesk: 404 Not Found The requested document was not found on this server
#213369069 - Domain statistics are not calculated if the 'cronie' and 'cronie-anacron' packages are installed
#213381509 - Unable to update web-statistics: "PHP Fatal error: Allowed memory size of bytes exhausted"
#213951505 - Different statistics values in web statistic and in Plesk.
#115004495974 - Statistic recalculation failed: line 5290 too long in state file /usr/local/psa/var/logrotate.status
#115003700753 - Statistics in Plesk is not being updated