Statistics is not updated: Unable to execute awstats_buildstaticpages.pl

Created:

2016-11-16 13:00:14 UTC

Modified:

2017-08-21 12:32:01 UTC

3

Was this article helpful?


Have more questions?

Submit a request

Statistics is not updated: Unable to execute awstats_buildstaticpages.pl

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

  1. Statistics not updated automatically. The following error appears during web_statistic_executor manual start:

    # /usr/local/psa/admin/sbin/web_statistic_executor --calculate-domain example.com
    Starting...
    Executing logs preparation...
    -----[ example.com
    Webstat: awstats
    Executing awstats...
    Processing the log /var/www/vhosts/system/example.com/logs/access_log.webstat
    /usr/lib/cgi-bin/awstats.pl -update -configdir=/opt/psa/etc/awstats -config=example.com-http -LogFile=/var/www/vhosts/system/example.com/logs/access_log.webstat
    ...
    Error: Unable to execute /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -configdir=/opt/psa/etc/awstats -config=example.com-http -dir=/var/www/vhosts/system/example.com/statistics//webstat/current
  2. Unable to open Web Statistics page for a domain at http://example.com/plesk-stat/webstat/:

    Not Found
    The requested URL /plesk-stat/webstat/2016-02/index.html was not found on this server.
    Apache Server at principality-of-sealand.eu Port 80
  3. Domain example.com is resolved into server IP

Cause

Missing awstats_buildstaticpages.pl file under /usr/share/doc/awstats/examples/ directory.

Resolution

  1. Find the location where the awstats_buildstaticpages.pl script is installed using one of the following commands (dpkg is for Debian/Ubuntu; rpm is for CentOS/RHEL/SuSE):

    # rpm -ql awstats | grep buildstaticpages
    # dpkg -L awstats | grep buildstaticpages
  2. Place this file to /usr/share/doc/awstats/examples/ directory:

    # cp /usr/share/awstats/tools/awstats_buildstaticpages.pl /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl
  3. Rerun Daily Maintenance task:

    # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f ExecuteWebStatistics

Additional information

213909025 AWstats statistics pages are not updated: "Unable to execute awstats_buildstaticpages.pl"

Have more questions? Submit a request
Please sign in to leave a comment.