Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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/awstats

Ich 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.bak

Warum kann der Cronjob nun also das Script nicht finden?

Solved by d00p

Go to solution
  • 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/awstats

das 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.pl

Die 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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.