AWStats page does not display images and graphs.
404 Not Founderror for all images.
The following errors could be found in
[authz_core:error] [pid 6138] [client 203.0.113.2:1505] AH01630: client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/unknown.png, referer: https://example.com/plesk-stat/webstat/current/index.html
[authz_core:error] [pid 6125] [client 203.0.113.2:1506] AH01630: client denied by server configuration: /usr/share/awstats/wwwroot/icon/browser/pdaphone.png, referer: https://example.com/plesk-stat/webstat/current/index.html
Fail2ban bans IP addresses that try to access files mentioned in errors.
The incorrect document directory path is configured for AWStats.
Custom Nginx directives preventing images from being served properly.
Connect to the server via SSH.
Check the AWSTATS directives in the
/etc/psa/psa.conffile and correct them as follows (if necessary):
In Plesk version 18.0.45 and earlier:
In version 18.0.46 and newer:
Run the following command to update AWStats configuration values in Plesk database:
# plesk sbin packagemng -sdf
Recreate configuration files for webserver:
# plesk repair web -domains-only
Note: Depending on the number of websites hosted on your server execution of this utility may take some time and Apache will be restarted.
Note: If there are custom Nginx directives used, make sure that they do not prevent images from being served properly.