blog:configure_awstats_on_debian_webserver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
blog:configure_awstats_on_debian_webserver [2010-06-29 15:42] – brb | blog:configure_awstats_on_debian_webserver [2010-10-24 10:28] – 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 50: | Line 52: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Add the update command to cron.hourly: | ||
+ | nice / | ||
Reload apache | Reload apache | ||
Line 58: | Line 63: | ||
To make it easier to remember the address you can edit / | To make it easier to remember the address you can edit / | ||
- | RedirectMatch ^/logs / | + | RedirectMatch ^/logs / |
Now you can access the awstats statistics by going to | Now you can access the awstats statistics by going to | ||
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.txt · Last modified: 2010-10-24 10:29 by brb