I have now tried it out an reached the stage where I have to issue the update command. I have configured similar to the old versions that I found in the Admin's home dir. The old conf file states that the LogFile is ="-" !!??
It reached to:
[root@server cgi-bin]# perl awstats.pl -config=www.swerts-knudsen.com -update
Update for config 'awstats.www.swerts-knudsen.com.conf'
With data in log file '-'...
Phase 1 : First bypass old records...
And never gets any further (even after 1 hour)
I am a little in doubt on where the log file is located. I have tried the /var/log/httpd/access_log file but AWStats complain about the format.
[root@server cgi-bin]# perl awstats.pl -config=www.swerts-knudsen.com -update
Update for config 'awstats.www.swerts-knudsen.com.conf'
With data in log file '/var/log/httpd/access_log'...
Phase 1 : First bypass old records...
AWStats did not found any valid log lines that match your LogFormat parameter, in the 50th first non
commented lines read of your log.
Your log file /var/log/httpd/access_log must have a bad format or LogFormat parameter setup does not
match this format.
Your AWStats LogFormat parameter is:
1
This means each line in your web server log file need to have "combined log format" like this:
111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/f
rom.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
And this is a sample of records AWStats found in your log file (the record number 50 in your log):
www.swerts-knudsen.dk 192.168.212.65 - - [01/Dec/2002:01:44:03 +0100] "GET /mrtg/system/kontor.cpu.h
tml HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
Setup ('awstats.www.swerts-knudsen.com.conf' file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup awstats.
Any good suggestions ?
Thanks,
Jesper