Plesk

Web Statistics page in Plesk shows 403 Forbidden error: Symbolic link not allowed or link target not accessible

Symptoms

Cause

Missing source file for a symbolic link

Resolution

Regenerate statistic for the domain

Warning: Before using the script to regenerate statistics it is strongly advised to create a backup of the subscriptions containing the domains the script will be used for.
If both, Apache and nginx are enabled and the following script is executed, logs processed by this script will not be sorted by timestamp, which can lead to incorrect values in resulting AWStats statistics.

  1. Connect to a Plesk server via SSH

  2. Download the script:

    # wget https://raw.githubusercontent.com/plesk/kb-scripts/master/rebuild-awstats/rebuild-awstats.sh

  3. Grant execute permissions for the script:

    # chmod 755 rebuild-awstats.sh

  4. Regenerate statistics from txt files using "-R" option or from existing logs using "-F"

    # ./rebuild-awstats.sh -R example.com

After recreation is complete, recalculate the statistic using this instructions.

Exit mobile version