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
- Log in to Plesk.
- Go to Domains > example.com > Hosting.
- Set Web statistics in accordance with your needs.
- Connect to the Plesk server via SSH (Linux) or RDP (Windows Server) .
-
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.
- Connect to the Plesk server via SSH.
-
Generate a list of all subscriptions:
CONFIG_TEXT: plesk bin subscription --list > /root/subscriptions.txt
- (Optional) Open the file /root/subscriptions.txt in a text editor and remove subscriptions which should not be changed.
-
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
- Connect to the Plesk server via RDP.
-
Generate a list of all subscriptions:
PS plesk bin subscription --list > /root/subscriptions.txt
- (Optional) Open the file /root/subscriptions.txt in a text editor and remove subscriptions which should not be changed.
-
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
Comments
Please sign in to leave a comment.