Article ID: 5508, created on Jul 30, 2008, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix
  • Plesk 12.0 for Windows


The domain has Apache logs, however, statistics for that period are not shown at http://domain.tld/plesk-stat/webstat/.

Even if you try running the Plesk utility statistics manually, the missing statistics are not included.

# /usr/local/psa/admin/sbin/statistics


The Plesk utility statistics is either launched from root crontab (crontab -l):

7     4     *     *     *    /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1

... or it is a daily task specified in /usr/local/etc/psa/plesk-cron.daily/50plesk-daily:

# install_statistics
/usr/local/psa/admin/sbin/statistics >/dev/null 2>&1

Since the** Plesk 9**, daily task is in /etc/cron.daily/50plesk-daily:

# install_statistics
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php     >/dev/null 2>&1

According to cron job, statistics runs every day, processing the Apache log file /var/www/vhosts/domain.tld/statistics/logs/access_log and moving it to /var/www/vhosts/domain.tld/statistics/logs/access_log.processed.N.gz. After that, statistics processes access_log.processed.N.gz files.


Using the instructions below may force the processing of access_log.processed.N.gz files to include statistics from this location in the domain's Web Stats.

  1. Go to the statistics directory of the virtual host domain.tld:

    For Plesk 11.0 and earlier:

    # cd /var/www/vhosts/domain.tld/statistics

    Since Plesk 11.5 version statistics folder is in /var/www/vhosts/system/domain.tld/statistics, so

    # cd /var/www/vhosts/system/domain.tld/statistics
  2. Back up the old webstat directory (just in case):

    statistics]# cp -rp webstat webstat.back

    Note that this directory is shown on the domain statistics page http://domain.tld/plesk-stat . You may delete it after reconfiguring the statistics.

  3. Delete the file webalizer.current and modify webalizer.hist, removing records for the months you want to recalculate statistics for. For example, to remove records for September (the 9th month), execute the following:

    statistics]# rm -f webstat/webalizer.current
    statistics]# sed -i '/^9.\*/D' webstat/webalizer.hist
  4. Unpack the log archives:

    statistics]# gunzip logs/access_log.processed.N.gz
    statistics]# gunzip logs/access_log.processed.1.gz

    Run webalizer to process logs access_log.processed.N, access_log.processed.1, and access_log.processed:

    statistics]# /usr/bin/webalizer -F clf -p -c ../conf/webalizer.conf -n domain.tld -o ./webstat -D /usr/local/psa/var/lib/webalizer/webalizer.cache -N 50 logs/access_log.processed.N
    statistics]# /usr/bin/webalizer -F clf -p -c ../conf/webalizer.conf -n domain.tld -o ./webstat -D /usr/local/psa/var/lib/webalizer/webalizer.cache -N 50 logs/access_log.processed.1
    statistics]# /usr/bin/webalizer -F clf -p -c ../conf/webalizer.conf -n domain.tld -o ./webstat -D /usr/local/psa/var/lib/webalizer/webalizer.cache -N 50 logs/access_log.processed

    Remember to replace domain.tld with the domain name you want to recalculate statistics for.

    Also since Plesk 11.5 version webalizer.cache is located in /usr/local/psa/var/webalizer/webalizer.cache.

    Note that the order of Apache logs is important: you should start processing them from the oldest log. For example, access_log.processed.20 then access_log.processed.19 and so on.

  5. Run statistics to process access_log and regenerate indexes:

    statistics]# /usr/local/psa/admin/sbin/statistics --generate-domain-webstat --domain-name=domain.tld

Additional Information

If /usr/local/psa is the product root directory and /var/www/vhosts is the virtual hosts directory, refer to #952 Knowledge Base article to locate the values specified in your system.

Search Words

Webalizer not working [IKG]

how to recalculate statistics

webalizer statistics


recalculate webalizer statistics

webalizer not displaying

statistics are not shown

web stats not updating


awstatics plesk 404

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 742559b1631652fadd74764ae8be475e e335d9adf7edffca6a8af8039031a4c7 ed7be2b984f9c27de1d2dc349dc19c6d 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8 2a5151f57629129e26ff206d171fbb5f

Email subscription for changes to this article
Save as PDF