phone UK  astutium phone number UK +44.20.3475.2555
phone US  astutium phone number US +1.607.264.2555
Filed under:

How do I force Statistics (Webalizer and AWstats) to run on Plesk Servers ?




Updating Webalizer and AWStats on Linux Plesk Servers from SSH

The plesk control panel is notorious for breaking, falling over, or simply not working correctly, and is the main reason Astutium no longer offer it for virtual hosting - it simply isn't stable enough :( That said, several of the "quirks" can be fixed or at least temorarily repaired from the command line:

  • To force an update to all sites daily statistics ...
    /usr/local/psa/admin/sbin/statistics --calculate-all
  • To update the plesk stats for just one site ...
    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name={domain}
  • To switch from webalizer to awstats ...
    /usr/local/psa/admin/sbin/webstatmng --set-configs --stat-prog=awstats --domain-name={domain}
  • To completely reset the webalizer for a domain ...
    /usr/local/psa/admin/sbin/webstatmng --clean --domain-name={domain}
    /usr/local/psa/admin/sbin/webstatmng --unset-configs --stat-prog=webalizer --domain-name={domain}
    /usr/local/psa/admin/sbin/webstatmng --set-configs --stat-prog=webalizer --domain-name={domain}
    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name={domain}
  • If the statistics cron fails ...
    This is generally that the log files are too large, to open/process.
    rm -fr /home/httpd/vhosts/*/statistics/logs/*.gz
    rm -fr /home/httpd/vhosts/*/statistics/logs/*.1
    rm -fr /home/httpd/vhosts/*/statistics/logs/*.2
    rm -fr /home/httpd/vhosts/*/statistics/logs/*.3
    rm -fr /home/httpd/vhosts/*/statistics/logs/*.4
    rm -fr /home/httpd/vhosts/*/statistics/logs/*.processed
    then examine the sizes of all the access logs with
    ls -l -a /home/httpd/vhosts/*/statistics/logs/access_log


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Language: