Article ID: 113693, created on Apr 12, 2012, last review on Jan 20, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 10.4 for Linux/Unix
  • Plesk 10.3 for Linux/Unix

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 psa tables.
  • Webalizer/Awstats utilities stores statistics as user friendly files accessible with a web browser.

Statistics Utility:


Where $PRODUCT_ROOT_D is a directory where Plesk is installed. Usually it is /usr/local/psa.

The Statistics utility performs the following tasks:

  • Processes the following log files for the services producing the majority of network traffic:
    • Apache logs “/var/www/vhosts/<domain_name>/statistics/logs/”.
    • FTP logs for authorized users $PRODUCT_ROOT_D/var/log/xferlog
    • FTP logs for anonymous users /var/www/vhosts/<domain_name>/statistics/logs/xferlog
    • Mail service logs $PRODUCT_ROOT_D/var/log/maillog
  • Extracts information from the above log files to the *.processed file and saves results in the following tables of the psa database:

    • DomainsTraffic
    • ClientsTraffic
  • Calls the logrotate utility from $PRODUCT_ROOT_D/logrotate/sbin/ which creates a rotation job according to $PRODUCT_ROOT_D/etc/logrotate.conf file.

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/Awstats Utility


Webalizer converts the statistical information in user friendly format(.html).

Plesk 11:

    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.

    /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 domain.tld

AWStats configuration files:


Webalizer configuration files:



  1. 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.

  2. 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.

Search Words

plesk how to configure individual ftp logs

Statistics calculation

statistics Search Keyphrases


log rotation doesn't work

calcul awstats anormalement long

a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f f4ce8084cb23619ef5fe9428ecc388ea 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF