How to disable web statistics on all domains on a server?

Created:

2016-11-16 13:20:33 UTC

Modified:

2017-08-16 16:07:14 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable web statistics on all domains on a server?

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk Onyx for Windows

Question

How to disable web statistics (AWstats or Webalizer) on all domains in Plesk?

Answer

Remove Web Statistics option in the corresponding Service Plan:

Service Plans > service_plan_name > Hosting Parameters > uncheck Web statistics > Update & Sync

Alternatively, the following CLI commands can be used to disable web statistics on all service plans:

On Plesk 12.5 for Linux and newer:

# plesk db -Nse "select name from Templates" | while read i; do /usr/local/psa/bin/service_plan -u "$i" -webstat none -webstat_protdir false; done

On Plesk Onyx for Windows and newer:

> for /f "tokens=*" %i in ('plesk db -Nse "select name from Templates"') do plesk bin service_plan.exe --update "%i" -webstat none -webstat_protdir false
Have more questions? Submit a request
Please sign in to leave a comment.