How to remove plesk-stat protected directories for all domains on a server?

Created:

2017-05-30 22:03:32 UTC

Modified:

2017-08-16 16:17:44 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to remove plesk-stat protected directories for all domains on a server?

Applicable to:

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

Question

How to remove plesk-stat protected directories for all domains on a server?

Answer

The following CLI commands can be used to remove plesk-stat protected directories for all domains on a server: On Plesk 12.5 for Linux and newer:

# plesk db -Nse "select name from domains" | while read i; do /usr/local/psa/bin/protdir -r /plesk-stat -domain "%i"; done

On Plesk Onyx for Windows and newer:

for /f "tokens=*" %i in ('plesk db -Nse "select name from domains"') do plesk bin protdir.exe --remove /plesk-stat -domain "%i"

To disable web statistics on all domains on a server refer to the following knowledge center article: #213410749

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