blog:configure_awstats_on_debian_webserver
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blog:configure_awstats_on_debian_webserver [2010-06-29 15:42] – brb | blog:configure_awstats_on_debian_webserver [2010-10-24 10:29] (current) – brb | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| Make it a default that access.log has these permissions. | Make it a default that access.log has these permissions. | ||
| + | |||
| + | Locate the awstats_updateall.pl script (it is in / | ||
| Edit the / | Edit the / | ||
| create 644 root adm | create 644 root adm | ||
| prerotate | prerotate | ||
| - | | + | nice /usr/local/bin/awstats_updateall.pl -awstatsprog=/ |
| endscript | endscript | ||
| Line 42: | Line 44: | ||
| sharedscripts | sharedscripts | ||
| prerotate | prerotate | ||
| - | | + | |
| postrotate | postrotate | ||
| if [ -f / | if [ -f / | ||
| Line 50: | Line 52: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | Add the update command to cron.hourly: | ||
| + | nice / | ||
| Reload apache | Reload apache | ||
| Line 63: | Line 68: | ||
| http:// | http:// | ||
| + | If you have a lot of old compressed logfiles that you would to include, set the logfile path to: | ||
| + | LogFile=" | ||
| + | |||
| + | And update the database. This will incorporate all old log entries. Don't forget to switch back to the last logfile! | ||
| Ref: http:// | Ref: http:// | ||
blog/configure_awstats_on_debian_webserver.1277818962.txt.gz · Last modified: 2010-06-29 15:42 by brb
