Password protected web statistics is not working

Created:

2016-11-16 12:53:17 UTC

Modified:

2017-04-24 12:08:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Password protected web statistics is not working

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

  • Password protected statistics pages are no longer working. Password is not required to get access to the page.
  • Customized domain template is in use

Cause

  • Customized domain templates protectedDirectories.php missing in /usr/local/psa/admin/conf/templates/custom/service

  • Template inclusion is absent or commented in /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php

Resolution

  1. Copy file from a default template directory:

    # cp -a /usr/local/psa/admin/conf/templates/default/domain/service/protectedDirectories.php /usr/local/psa/admin/conf/templates/custom/service
  2. Check /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php :

    # grep 'protectedDirectories.php' /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php
    echo $VAR->includeTemplate('domain/service/protectedDirectories.php', $OPT) . "\

    ";

  3. Make sure that this is not commented and file under /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php exist.

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