Habe die Anleitung auf dem FAQ des Rootforum benutzt um die AWStats anstatt Webalizer Statistiken zu benutzen.
Aber wenn ich am Ende das Script starte kommt das - woher kommt die Pid-Datei ?
httpdtraffik.sh
/usr/bin/find: ./proc/19447/fd: No such file or directory
/bin/rm: too few arguments
Try `/bin/rm --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/bin/mkdir: too few arguments
Try `/bin/mkdir --help' for more information.
./httpdtraffik.sh: line 32: /var/run/confixx/confixx_httpdtraffik.pid: No such file or directory
./httpdtraffik.sh: line 35: ^Xweb[0-9]+$: command not found
./httpdtraffik.sh: line 35: ^Xweb[0-9]+$: command not found
./httpdtraffik.sh: line 35: ^Xweb[0-9]+$: command not found
./httpdtraffik.sh: line 35: ^Xweb[0-9]+$: command not found
rm: cannot remove `/var/run/confixx/confixx_httpdtraffik.pid': No such file or directory
EDIT: Das .pid Problem ist gelöst, aber woher kommen die Fehlermeldungen?
Habe SuSe 9.0 / Apache2
AWStats autom. für alle Vhosts
Re: AWStats autom. für alle Vhosts
Du meinst die command Fehlermeldung? das gehört doch da nicht wirklich hin oder?
Code: Select all
^XGruß Christian
BofH excuses: YOU HAVE AN I/O ERROR -> Incompetent Operator error
BofH excuses: YOU HAVE AN I/O ERROR -> Incompetent Operator error
Re: AWStats autom. für alle Vhosts
Sieht nicht so aus als ob es hingehört, hast recht.
Aber ich hab das Script doch hier aus den FAQ :
( http://www.rootforum.org/faq/index.php? ... ht=awstats )
Nachdem ich das ^X entfernt hab, konnt nun :
Ich kenne mich mit dem scripten nicht aus und wüsste nicht woran es liegen sollte.
Aber was ich seltsam finde - die original httpdtraffik.sh hat die selbe Zeile drin und da kommt keine Fehlermeldung.
Gruß
Aber ich hab das Script doch hier aus den FAQ :
( http://www.rootforum.org/faq/index.php? ... ht=awstats )
Nachdem ich das ^X entfernt hab, konnt nun :
Dann habe ich testweise auch noch +$ entfernt und dann kommt :./httpdtraffik2.sh
/bin/rm: too few arguments
Try `/bin/rm --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/bin/mkdir: too few arguments
Try `/bin/mkdir --help' for more information.
./httpdtraffik2.sh: line 35: web[0-9]+$: command not found
./httpdtraffik2.sh: line 35: web[0-9]+$: command not found
./httpdtraffik2.sh: line 35: web[0-9]+$: command not found
./httpdtraffik2.sh: line 35: web[0-9]+$: command not found
Scheint was am rm Befehl zu liegen, es sagt ja "too few arguments", das selbe beim mkdir../httpdtraffik2.sh
/bin/rm: too few arguments
Try `/bin/rm --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/bin/mkdir: too few arguments
Try `/bin/mkdir --help' for more information.
./httpdtraffik2.sh: line 35: web[0-9]: command not found
./httpdtraffik2.sh: line 35: web[0-9]: command not found
./httpdtraffik2.sh: line 35: web[0-9]: command not found
./httpdtraffik2.sh: line 35: web[0-9]: command not found
Ich kenne mich mit dem scripten nicht aus und wüsste nicht woran es liegen sollte.
Aber was ich seltsam finde - die original httpdtraffik.sh hat die selbe Zeile drin und da kommt keine Fehlermeldung.
Gruß
Re: AWStats autom. für alle Vhosts
So, ... irgendwie läuft die Sache und als Antwort bekomme ich :
Naja, wenn ich jetzt über Confixx die Statistiken sehen will, leitet er mich auf "domain.tld/cgi-bin/awstats.pl?config=web0"
Und da sagt er 404 - ich kann nur nicht finden wo ich ihm sagen kann wo er die *.pl öffnen soll.
Gruß
Aber ich habe doch Perl 5.8 ... naja, scheint aber das er alle Daten geschrieben hat../httpdtraffik2.sh
Warning: Perl versions before 5.6 cannot handle nested includes
Update for config "/etc/awstats/awstats.web0.conf"
With data in log file "/home/www/web0/log/access_log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 924
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 924 new qualified records.
Naja, wenn ich jetzt über Confixx die Statistiken sehen will, leitet er mich auf "domain.tld/cgi-bin/awstats.pl?config=web0"
Und da sagt er 404 - ich kann nur nicht finden wo ich ihm sagen kann wo er die *.pl öffnen soll.
Gruß
Re: AWStats autom. für alle Vhosts
Okay, im httpdtraffik.sh steht in zeile 64 :
Wie änder ich das ab? Bzw. ich will ja den Pfan angeben und nicht die URL.
EDIT :
Habe jetzt das awstats an eine andere stelle gelegt und nun zeigt mir die seite über den browser folgendes an :
Aber bei mir liegt awstats unter = /usr/local/awstatsecho "<META HTTP-EQUIV=Refresh CONTENT="0; URL=/cgi-bin/awstats.pl?config=$USER">" > $AWSDIR/USER/index.html
Wie änder ich das ab? Bzw. ich will ja den Pfan angeben und nicht die URL.
EDIT :
Habe jetzt das awstats an eine andere stelle gelegt und nun zeigt mir die seite über den browser folgendes an :
Und nun ?Warning: Perl versions before 5.6 cannot handle nested includes
Re: AWStats autom. für alle Vhosts
Gibt es nicht irgendwo eine vollständige Anleitung ?