Unable to allow access to web statistics through a protected directory: web statistics is turned off.

Created:

2016-11-16 13:00:48 UTC

Modified:

2017-04-24 12:00:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to allow access to web statistics through a protected directory: web statistics is turned off.

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

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.

Cause

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.

Resolution

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
Have more questions? Submit a request
Please sign in to leave a comment.