Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

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

 
2021403 forbidden errorapachebackupdns statistics

Symptoms

  • Statistics for previous months can not be checked in Plesk > Domains > example.com > Web Statistics SSL/TLS. The error message is provided in a browser:

    Server Error 403 Forbidden
    You do not have permissions to access this document

  • In the /var/www/vhosts/system/example.com/logs/error_log the error message exists:

    AH00037: Symbolic link not allowed or link target not accessible: /var/www/vhosts/system/example.com/statistics/webstat-ssl/2021-02/index.html, referer: https://example.com/plesk-stat/webstat-ssl/nav.html

  • The file /var/www/vhosts/system/example.com/statistics/webstat-ssl/2021-02/index.html is a symlink to /var/www/vhosts/system/example.com/statistics/webstat-ssl/2021-02/awstats.example.com-https.html which doesn't exist:

    # ls -la /var/www/vhosts/system/example.com/statistics/webstat-ssl/2021-02/
    total 0
    drwxr-xr-x. 2 root root 24 Feb 28 06:20 .
    drwxr-xr-x. 5 root root 238 Apr 25 03:37 ..
    lrwxrwxrwx. 1 root root 33 Feb 28 06:20 index.html -> awstats.example.com-https.html

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.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »

403 Forbidden Error: What Is It & How To Fix It

Read More »
Knowledge Base

Pages of a website hosted in Plesk fail to load: Size of a request header field exceeds server limit

Read More »

A website hosted in Plesk shows wrong website content when opened over HTTPS after migration from a legacy Plesk version

Read More »

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

Is it possible to enable OCSP Stapling for a domain in Plesk?

Read More »

Hosting Wiki

  • Server Redundancy
  • AMP
  • Bare Metal Server
  • Backup
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Domain
  • Plesk
  • Apache Tomcat
  • NGINX
  • Apache
  • Web Server
  • DNS Server
  • SSL
  • SSH
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family