August 28Aug 28 Guten Morgen,ich habe bei meiner Installation auf Froxlor 2.2.8 auf Debian Bullseye die Statistikerstellung auf awstats umgestellt. Seither erhalte ich vom Cronjob diese Fehlermeldung:Aug 28 00:00:07 server froxlor[828116]: froxlor.WARNING: Necessary awstats_buildstaticpages.pl script could not be found, no traffic is being calculated and no stats are generated. Please check your AWStats-Path setting {"source":"cron","action":"40","user":"system"} []Ich habe die Befehlszeilen kopiert und nach Anpassung ausgeführt.Vorgeschlagen wurde von Froxlor das:apt-get install awstats mv /etc/awstats//awstats.conf /etc/awstats//awstats.model.conf sed -i.bak 's/^DirData/# DirData/' /etc/awstats//awstats.model.conf sed -i.bak 's|^\\(DirIcons=\\).*$|\\1\\"/awstats-icon\\"|' /etc/awstats//awstats.model.conf rm /etc/cron.d/awstats rm /etc/logrotate.d/httpd-prerotate/awstatsIch habe dort die doppelten / in den Dateipfaden durch einfache ersetzt, es kam sonst zu Fehlern.In den Statistikeinstellungen habe ich folgende Pfade eingetragen:Pfad zu AWStats 'awstats_buildstaticpages.pl': /usr/share/awstats/tools/awstats_buildstaticpages.pl Pfad zu AWStats 'awstats.pl': /usr/lib/cgi-bin/awstats.pl AWStats Konfigurations-Pfad: /etc/awstats/ Pfad zum AWstats-Icon-Ordner: /usr/share/awstats/icon/Diese Pfade stimmen mit den tatsächlichen Speicherorten überein und die beiden pl Dateien sind ausführbar für Froxlor (755): ls -l /usr/share/awstats/tools/awstats_buildstaticpages.pl -rwxr-xr-x 1 root root 19963 17. Dez 2018 /usr/share/awstats/tools/awstats_buildstaticpages.pl ls -l /usr/lib/cgi-bin/awstats.pl -rwxr-xr-x 1 root root 689177 7. Dez 2022 /usr/lib/cgi-bin/awstats.pl ls -l /etc/awstats/ insgesamt 188 -rw-r--r-- 1 root root 240 7. Dez 2022 awstats.conf.local -rw-r--r-- 1 root root 619 27. Aug 15:45 awstats.my.tld.conf -rw-r--r-- 1 root root 64605 26. Aug 11:43 awstats.model.conf -rw-r--r-- 1 root root 64605 26. Aug 11:43 awstats.model.conf.bakWarum kann der Cronjob nun also das Script nicht finden?
August 28Aug 28 Solution Vorgeschlagen wurde von Froxlor das:apt-get install awstats mv /etc/awstats//awstats.conf /etc/awstats//awstats.model.conf sed -i.bak 's/^DirData/# DirData/' /etc/awstats//awstats.model.conf sed -i.bak 's|^\\(DirIcons=\\).*$|\\1\\"/awstats-icon\\"|' /etc/awstats//awstats.model.conf rm /etc/cron.d/awstats rm /etc/logrotate.d/httpd-prerotate/awstatsdas ist nur das "einmal konfigurieren" - hängt natürlich alles komplett von deinen einstellungen ab (so auch die doppelten slashes im pfad)Pfad zu AWStats 'awstats_buildstaticpages.pl': /usr/share/awstats/tools/awstats_buildstaticpages.pl Pfad zu AWStats 'awstats.pl': /usr/lib/cgi-bin/awstats.plDie Setting heisst "Pfad zu"...er sollte also den Dateinnamen der benötigten Tools nicht enthalten, korrekt ist also:Pfad zu AWStats 'awstats_buildstaticpages.pl': /usr/share/awstats/tools Pfad zu AWStats 'awstats.pl': /usr/lib/cgi-bin
Create an account or sign in to comment