This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:ubuntu:awstats [2015/11/05 10:40] – created lunetikk | linux:ubuntu:awstats [2018/12/20 17:40] (current) – Discussion status changed lunetikk | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | < | ||
===== Configuration ===== | ===== Configuration ===== | ||
+ | [[https:// | ||
==== Logrotate ==== | ==== Logrotate ==== | ||
Copy this in "/ | Copy this in "/ | ||
- | < | + | < |
/ | / | ||
weekly | weekly | ||
Line 30: | Line 32: | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== No refs, no OS info ==== | ||
+ | |||
+ | == Description: | ||
+ | The list of refs and OS info is empty because of a wrong perl version. Error occurs with perl above 5.10.0. \\ | ||
+ | Check your version with: | ||
+ | < | ||
+ | perl -v | ||
+ | </ | ||
+ | |||
+ | == Reason: == | ||
+ | Perl changed some things which mess up the awstats perl file\\ | ||
+ | |||
+ | == Fix: == | ||
+ | Open your awstats.pl | ||
+ | <code bash>vi / | ||
+ | Line 1354, comment | ||
+ | <code bash> | ||
+ | if (/ | ||
+ | </ | ||
+ | insert " | ||
+ | <code bash> | ||
+ | OptimizeArray { | ||
+ | my $array = shift; | ||
+ | my @arrayunreg = map { UnCompileRegex($_) } @$array; | ||
+ | my $notcasesensitive = shift; | ||
+ | </ | ||
+ | |||
+ | Line 7812, comment | ||
+ | <code bash> | ||
+ | shift =~ / | ||
+ | </ | ||
+ | insert "shift =~ / | ||
+ | <code bash> | ||
+ | UnCompileRegex { | ||
+ | shift =~ / | ||
+ | return $1; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ~~DISCUSSION: | ||
+ | |||
+ |