Awstats not updating ubuntu


Cookies on this forum also track the specific topics you have read and when you last read them.

Please confirm whether you accept or reject these cookies being set.

We'll name the script after the awstats config file for the site in question and put it in the cron monthly directory. /bin/sh # # Run the awstats build script to generate a report for last month.

awstats not updating ubuntu-87awstats not updating ubuntu-76awstats not updating ubuntu-35

Inserted into the existing logrotate file for our virtual host, the whole thing would look like: And with that, every time the logs get rotated, the web stats get updated too. By sticking a web stats update into the log rotation process we make sure that awstats is looking at log entries up until the last possible moment, when the log is rotated.

Instead of using logrotate to run the web stats update we could just schedule the stats to update through cron. If you have the web server reloading instead of restarting there might be a couple log entries missed (since the old log file would still be used as the old connections finish).

This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not.

Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again.