- Plesk 11.5 for Linux
Enabling password protection for statistics, the following error appears:
# /usr/local/psa/bin/domain --update domain.tld -webstat none -webstat-protdir-access true
An error occurred during domain update: An error occurred during changing of hosting settings: Unable to allow access to web statistics through a protected directory: Web statistics is turned off.
It is not possible to turn statistics off for domain ( -webstat none ) and enable password protection for statistics ( -webstat-protdir-access true ) at the same time.
If you would like to enable password protection for statistics pages, make sure that web statistic is enabled for domain in "Hosting Settings". Or you can specify statistics as below:
# /usr/local/psa/bin/domain --update domain.tld -webstat awstats -webstat-protdir-access true