Articles in this section

How to enable or disable web statistics for a domain in Plesk?

Plesk for Windows kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Question

  • How to enable or disable web statistics for a domain in Plesk?
  • Can I enable or disable web statistics for a website in Plesk?

Answer

Note: There are three web statistics components that come along with Plesk and can be installed via Plesk Installer:

  • AWStats
  • GoAccess (Linux only)
  • Webalizer
Enabling or disabling web statistics via Plesk
  1. Log in to Plesk.
  2. Go to Domains > example.com > Hosting.
  3. Set Web statistics in accordance with your needs.
Enabling or disabling web statistics via a command-line interface
  1. Connect to the Plesk server via  SSH (Linux) or RDP (Windows Server) .
  2. Execute the following command:

    CONFIG_TEXT: plesk bin domain --update example.com -webstat <option>

    where available options are:

    • none
    • awstats
    • goaccess
    • webalizer

Note: GoAccess is not available for Windows.

(Linux) Enabling or disabling web statistics for all domains
  1. Connect to the Plesk server via SSH.
  2. Generate a list of all subscriptions:

    CONFIG_TEXT: plesk bin subscription --list > /root/subscriptions.txt

  3. (Optional) Open the file /root/subscriptions.txt in a text editor and remove subscriptions which should not be changed.
  4. Execute the following command:

    CONFIG_TEXT: cat /root/subscriptions.txt | while read i; do plesk bin domain --update $i -webstat <option> ; done 

    where available options are:

    • none
    • awstats
    • goaccess
    • webalizer
(Windows) Enabling or disabling web statistics for all domains
  1. Connect to the Plesk server via RDP.
  2. Generate a list of all subscriptions:

    PS plesk bin subscription --list > /root/subscriptions.txt

  3. (Optional) Open the file /root/subscriptions.txt in a text editor and remove subscriptions which should not be changed.
  4. Execute the following command:

    PS more C:\subscriptions.txt | % { if ($_) { plesk bin domain --update $_ -webstat <option> } }

    where available options are:

    • none
    • awstats
    • webalizer

Additional Information

Statistics and Logs | Plesk Obsidian documentation 

Viewing Statistics | Plesk Obsidian documentation 

View Site Visit Statistics | Plesk Obsidian documentation 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.