Jump to content
Froxlor Forum
  • 0

awstats generiert keine Werte (alles 0)


escaped

Question

hiho,

 

ich habe versucht awstats zum laufen zu bekommen (Debian Lenny, Froxlor 0.9.4) und musste daf?r erstmal folgende ?nderungen durchf?hren, damit ?berhaupt erstmal die html Pages generiert werden:

 

cp /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl /usr/lib/cgi-bin/

Anpassen der awstats_buildstaticpages.pl:
my $Awstats='awstats.pl'; => my $Awstats='/usr/lib/cgi-bin/awstats.pl';

cp /etc/awstats/awstats.conf /etc/awstats/awstats.model.conf  # Da die einzelnen conf diese Datei inkludieren

 

Nun wurden schonmal die .html Dateien erstellt, jedoch mit dem Hinweis, dass bestimmte Variablen nicht gesetzt sind. Daraufhin habe ich die conf einer Domain angepasst:

/etc/awstats# cat awstats.[domain].com.conf 
## GENERATED BY FROXLOR
## Do not remove the line above! This tells Froxlor to update this configuration
## If you wish to manually change this configuration file, remove the first line to make sure Froxlor won't rebuild this file
## Generated for domain relatedworks.com on Friday 16th of April 2010 08:55:01 PM
LogFile="/var/customers/logs/rw-access.log"
LogType=W
LogFormat = 1
LogSeparator=" "
SiteDomain="[domain].com"
HostAliases="www.[domain].com"
DirData="/var/customers/webs/rw/awstats/[domain].com/"
Include "/etc/awstats/awstats.model.conf"

zu:

/etc/awstats# cat awstats.[domain].com.conf 
## GENERATED BY FROXLOR
## Do not remove the line above! This tells Froxlor to update this configuration
## If you wish to manually change this configuration file, remove the first line to make sure Froxlor won't rebuild this file
## Generated for domain relatedworks.com on Friday 16th of April 2010 08:55:01 PM
Include "/etc/awstats/awstats.model.conf"
LogFile="/var/customers/logs/rw-access.log"
LogType=W
LogFormat = 1
LogSeparator=" "
SiteDomain="[domain].com"
HostAliases="www.[domain].com"
DirData="/var/customers/webs/rw/awstats/[domain].com/"

 

Das include muss zuerst stehen, damit die bereits vorhanden Variablen neu gesetzt werden.

Nun konnte ich endlich den folgenden Befehl erfolgreich ausf?hren: /usr/lib/cgi-bin/awstats_buildstaticpages.pl -config=[domain].com -month=04 -year=2010 -dir=/var/customers/webs/rw/awstats/[domain].com/

 

und es wurden erfolgreich 20 html-Seiten mit den ganzen Tabellen generiert. Allerdings ist die Statistik leer, d.h. alle Wert sind 0.

Kann mir jemand sagen, wo der Fehler in der konfiguration liegt?

 

 

Desweiteren w?rde mich mal interessieren, welche Login-Daten f?r die Generierung der htpasswd-Dateien genommen werden. Die Kunden-Logindaten gingen nicht, obwohl der entsprechende user in der entsprechenden htpasswd datei war. Als ich das Passwort manuell f?r den Benutzer mittels htpasswd gesetzt habe (dasselbe wie f?r den Kundenlogin), konnte ich [domain].com/awstats/ endlich aufrufen.

 

 

Danke schonmal

 

escaped

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...