Applicable to:
- Plesk for Linux
Symptoms
- AWStats page does not display images and graphs.
- FireBug shows
404 Not Founderror for all images. -
The following errors show up in
/var/www/vhosts/system/example.com/logs/error_log:CONFIG_TEXT: [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.
Cause
The incorrect document directory path is configured for AWStats.
Resolution
- Connect to the server via SSH.
-
Check the AWSTATS directives in the
/etc/psa/psa.conffile and correct them as follows:Ubuntu/DebianCONFIG_TEXT: AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstatsCentOS/RedHatIn Plesk version 18.0.45 and earlier:
CONFIG_TEXT: AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /var/www/cgi-bin/awstats
AWSTATS_TOOLS_D /usr/share/awstats
AWSTATS_DOC_D /var/www/html/awstatsIn version 18.0.46 and newer:
CONFIG_TEXT: AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/share/awstats/wwwroot/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats/wwwroot -
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.
Comments
Please sign in to leave a comment.