no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | awstats [2015/06/01 21:45] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Advanced Web Statistics ====== | ||
| + | AWStats reads the raw Apache logfiles and parses them to give you detailed information about visitors. | ||
| + | |||
| + | ==== Setup ==== | ||
| + | |||
| + | * Download the tarball and unpack it into ''/ | ||
| + | * Make new directory ''/ | ||
| + | * Run ''/ | ||
| + | * Create '' | ||
| + | * Create an [[http:// | ||
| + | * Setup apache | ||
| + | * Setup cron job | ||
| + | * Build stats | ||
| + | |||
| + | < | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | == Awstats configuration script == | ||
| + | |||
| + | Ubuntu: | ||
| + | |||
| + | < | ||
| + | > / | ||
| + | > y | ||
| + | > domain.com | ||
| + | > [Enter for default] | ||
| + | </ | ||
| + | |||
| + | Creates file ''/ | ||
| + | |||
| + | Update stats: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === Apache Configuration == | ||
| + | |||
| + | Copy / | ||
| + | |||
| + | < | ||
| + | Alias /awstats "/ | ||
| + | < | ||
| + | AllowOverride None | ||
| + | Options None | ||
| + | Order deny,allow | ||
| + | Deny from all | ||
| + | Allow from 173.165.130.129 | ||
| + | Allow from 127.0.0.1 | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | == CPanel Integration == | ||
| + | |||
| + | On some CentOS installations, | ||
| + | |||
| + | ''/ | ||
| + | |||
| + | === AWStats Configuration === | ||
| + | |||
| + | You can use the sample config above, or use the config script to create a new one. Here are some configuration variables you are most likely to want to change: | ||
| + | |||
| + | * LogFile="/ | ||
| + | * DetailedReportsOnNewWindows=0 (removes _target in links) | ||
| + | * LogFormat=1 (combined) | ||
| + | * LogFormat=4 (common) | ||
| + | |||
| + | * [[http:// | ||
| + | |||
| + | === Initial Run, Cron Job === | ||
| + | |||
| + | You will need to run the awstats script to build the stats at least once. | ||
| + | |||
| + | Also, you can setup a cron job to execute it nightly. | ||
| + | |||
| + | < | ||
| + | / | ||
| + | -update -dir=/ | ||
| + | </ | ||