Symptoms
-
Unable to open Web Statistics page for a domain:
404 Not Found
The requested URL /plesk-stat/webstat/current/index.html was not found on this server.
403 Forbidden You do not have permission to access this document.
This is the placeholder for Web statistics. If you see this page, that means that statistics for your server was not gathered yet, or bandwidth was not used. Statistics is typically set to run once every 24 hours. If you do not see a change to this page in the next 24 hours contact your server administrator for assistance.
Error: Not same number of records of BrowsersSearchIDOrder (202 entries) and BrowsersHashIDLib (203 entries without firefox,opera,chrome,safari,konqueror,svn,msie,netscape) in Browsers database. May be you updated AWStats without updating browsers.pm file or you made changed into browsers.pm not correctly. Check your file /usr/share/awstats/lib/browsers.pm is up to date.
Setup (‘/usr/local/psa/etc/awstats/awstats.example.com-http.conf’ file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in ‘docs’ directory). -
The file
access_log.webstat
does not get rotated and can consume a lot of disk space -
Several images on
https://www.example.com/plesk-stat/webstat/
page are not loaded with 404 or 403 errors: -
Value for column “Number of visits” is always 0
Cause
Third-party AWStats package is installed:
# rpm -qi awstats |grep Packager
Packager : Fedora Project
Resolution
Re-install AWStats from Plesk repository:
Warning: Recreation of configuration files for domains may lead to temporary inaccessibility of hosted websites.
-
Connect to the server using SSH
-
Create a backup of AWStats configuration:
# mkdir awstats_backup
# cp -r /etc/awstats/ awstats_backup -
Exclude awstat packages from all third-party repositories in
/etc/yum.repos.d
directory. Add the lineexclude=awstats*
into the .repo files, and inside each repository block, for example:# cat /etc/yum.repos.d/epel.repo
…
exclude=awstats*
[epel-debuginfo]
…
exclude=awstats*
[epel-source]
…
exclude=awstats* -
Remove AWStats package:
# yum remove awstats
-
Install AWStats using Plesk installer
-
Recalculate statistics using:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ExecuteStatistics
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ExecuteWebStatistics -
Recreate configuration files for domains:
# plesk repair web -domains-only