How to recalculate statistics for a particular domain on Plesk?

Created:

2016-11-16 13:06:04 UTC

Modified:

2017-07-16 05:18:30 UTC

10

Was this article helpful?


Have more questions?

Submit a request

How to recalculate statistics for a particular domain on Plesk?

Applicable to:

  • Plesk for Linux
  • Plesk 12.0 for Windows

Question

How to recalculate statistics for a particular domain?

Answer

Plesk calls the statistics utility to calculate web page access statistics, traffic usage statistics and disk space usage statistics, in the scope of Daily Maintenance Task activity.

The option --calculate-one is used to initiate manual statistics recalculation for one domain only:

For Linux: 

# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com

For Windows: 

C:\> "%plesk_bin%/statistics.exe" --calculate-one --domain-name=example.com

More information about statistics utility usage is available from the --help option output:

For Linux

[root@server ~]# /usr/local/psa/admin/bin/statistics --help
Usage: /usr/local/psa/admin/sbin/statistics [ options ]
--calculate-all Calculate statistics for all domains
--calculate-one Calculate statistics for <domain-name>
--domain-name|-d <string>
--calculate-list Calculate statistics for listed domains
--generate-all-webstat Generate web-statistics pages for all domains
--generate-domain-webstat Generate web-statistics pages for <domain-name>
--domain-names|-n <string> List of domains, comma separated
--domain-ids|-i <string> List of domains IDs, comma separated
--process-domains|-p <string> Calculate statistics for <domain-name>
--all Calculate all aspects of statistics
--antivirus Calculate antivirus and antispam statistics
--no-webstat Do not generate web-statistics pages (always set for PPA mode, on Windows platform or in Shared Hosting Module mode)
--no-dbstat Do not generate DB hosting statistics
--help|-h display this help and exit
If no options specified - calculate statistics for all domains

For Windows

C:\>"%plesk_bin%/statistics.exe" --help
Usage: C:\Program Files (x86)\Plesk\admin\plib\cu\statistics.php [ options ]
--calculate-all Calculate statistics for all domains
--calculate-one Calculate statistics for <domain-name>
--domain-name|-d <string>
--calculate-list Calculate statistics for listed domains
--generate-all-webstat Generate web-statistics pages for all domains
--generate-domain-webstat Generate web-statistics pages for <domain-name>
--domain-names|-n <string> List of domains, comma separated
--domain-ids|-i <string> List of domains IDs, comma separated
--process-domains|-p <string> Calculate statistics for <domain-name>
--all Calculate all aspects of statistics
--antivirus Calculate antivirus and antispam statistics
--no-webstat Do not generate web-statistics pages (always set for PPA mode, on Windows platform or in Shared Hosting Module mode)
--no-dbstat Do not generate DB hosting statistics
--help|-h display this help and exit
If no options specified - calculate statistics for all domains

Additional information:

#213943445 - [HUB] Troubleshooting Statistics Issues in Plesk for Linux

#213960945 - [HUB] Troubleshooting Statistics Issues in Plesk for Windows

Have more questions? Submit a request
Please sign in to leave a comment.