Site Tools


linux:ubuntu:awstats

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:ubuntu:awstats [2015/11/05 10:45] lunetikklinux:ubuntu:awstats [2017/11/29 16:59] lunetikk
Line 12: Line 12:
 ==== Logrotate ==== ==== Logrotate ====
 Copy this in "/etc/logrotate.d/awstats \\ Copy this in "/etc/logrotate.d/awstats \\
-<code>+<code bash awstats>
 /var/log/apache2/*_log { /var/log/apache2/*_log {
     weekly     weekly
Line 32: 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:
 +<code>
 +perl -v
 +</code>
 +
 +== Reason: == 
 +Perl changed some things which mess up the awstats perl file\\
 +
 +== Fix: == 
 +Open your awstats.pl
 +<code bash>vi /usr/local/awstats/wwwroot/cgi-bin/awstats.pl</code>
 +Line 1354, comment 
 +<code bash>
 +if (/\(\?[-\w]*:(.*)\)/) { $1 }
 +</code> 
 +insert "UnCompileRegex($_)"
 +<code bash>
 +OptimizeArray {
 +my $array = shift;
 +my @arrayunreg = map { UnCompileRegex($_) } @$array;
 +my $notcasesensitive = shift;
 +</code>
 +
 +Line 7812, comment 
 +<code bash>
 +shift =~ /(\?[-\w]:(.))/;
 +</code> 
 +insert "shift =~ /(\?[-^\w]:(.))/;"
 +<code bash>
 +UnCompileRegex {
 +shift =~ /(\?[-^\w]:(.))/;
 +return $1;
 +}
 +</code>
 +
 +\\
 +\\
 +~~DISCUSSION~~
 +
 +
linux/ubuntu/awstats.txt · Last modified: 2018/12/20 17:40 by lunetikk