AWSTATS = wie aufrufen.

Lord_Icon

Member
Hi,

habe mir AWSTATS auf mein VServer normal installiert.

In mein Webverzeichniss habe ich ein Ordner statistik und dort ein cgi-bin ordner angelegt.

im Pfad /etc/awstats => dann die configurationsdatei angelegt.

vi awstats.www.meine-domain.de.conf

hier mal die wichtigsten Eckdaten (denke ich)
Code:
LogFile="/var/log/apache2/access_log"
LogType=W
LogFormat=1
LogSeparator=" "
SiteDomain="www.meine-domain.de"
HostAliases="meine-domain.de www.meine-domain.de"
DNSLookup=2
DirData="/srv/www/htdocs/ks011/html/statistik"
DirCgi="/srv/www/htdocs/ks011/html/statistik/cgi-bin"
DirIcons="/icon"
AllowToUpdateStatsFromBrowser=0
AllowFullYearView=2
EnableLockForUpdate=0
DNSStaticCacheFile="dnscache.txt"
DNSLastUpdateCacheFile="dnscachelastupdate.txt"
SkipDNSLookupFor=""
AllowAccessFromWebToAuthenticatedUsersOnly=0
AllowAccessFromWebToFollowingAuthenticatedUsers=""
AllowAccessFromWebToFollowingIPAddresses=""
CreateDirDataIfNotExists=0
BuildHistoryFormat=text
BuildReportFormat=html
SaveDatabaseFilesWithPermissionsForEveryone=0
PurgeLogFile=0
ArchiveLogRecords=0
KeepBackupOfHistoricFiles=0
DefaultFile="index.html"

Wenn ich das in den Docs nun richtig gelesen habe, muß der apache neu gestartet werden.
Hier stellt sich mir schon die erste Frage, wie der apache denn weiß, das er auch die *.conf reinladen soll, die unter /etc/awstats drin sind. O.k.... ich könnte es in die httpd.conf absichtlich includen... aber wenn das so vorgesehen ist, dann denke ich doch, das das auch in den Docs drin stehen sollte.

Naja... vielleicht muß es ja auch nicht...

Dann die Stats erneuern bzw. erstellen:

Code:
/usr/local/awstats/tools/awstats_updateall.pl now
Running '"/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -update -config=www.meine-domain.de -configdir="/etc/awstats"' to update config www.meine-domain.de
Create/Update database for config "/etc/awstats/awstats.www.meine-domain.de.conf" by AWStats version 6.7 (build 1.892)
From data in log file "/var/log/apache2/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 977)
Jumped lines in file: 977
 Found 977 already parsed records.
Parsed lines in file: 6
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 6 new qualified records.

Eine Datei kann ich auch im Statistikordner wiederfinden.
awstats042008.w w w.meine-domain.de.txt


ich denke also, ich bin schon nahr dran :rolleyes:
Bleibt nur noch die Statistik aufzurufen.... laut doc:
w w w . meine-domain. d e /statistik/awstats.pl

aber da bekomme ich logischerweise ne 404 Fehlermeldung. Die textdatei kann ich aber direkt aufrufen.
Was mache ich denn falsch ?
 
Last edited by a moderator:
Back
Top