I have just tried to complete an installation of AWStats from this guide
ihsen.com/support/InstallingAWStatsOnIIS6.pdf
When I get to step 11 – testing and finishing – I have a permission problem.
when it tries to setup the new log file it reports
c:\Inetpub\wwwroot\awstats\cgi-bin/awstats.Mysite.conf' file, web server or permission may be wrong. The config file is read only and everthing is setup as per instructions.
The Perl CGI Extension is not listed in the web service extensions – only PERL is listed after following the guide. Have I done something wrong to not have the Perl CGI extension listed.
You get this message when running "awstats.pl -config=Mysite -update " from the command line. The good news is that this means that awstats.pl is running!
Can you paste here the complete error message ? I am interested in the part of the error message before "c:\Inetpub\wwwroot\awstats\cgi-bin/awstats.Mysite.conf' file, web server or permission may be wrong."
Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\stevenl>cd C:\Inetpub\wwwroot\AWStats\cgi-bin
C:\Inetpub\wwwroot\AWStats\cgi-bin>awstats.pl -config=Artstruggle -update Create/Update database for config "C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.Ar tstruggle.conf" by AWStats version 6.7 (build 1.892) From data in log file "C:\WINDOWS\system32\LogFiles\W3SVC1954162661\ex080408.log "… Error: Couldn't open server log file "C:\WINDOWS\system32\LogFiles\W3SVC19541626 61\ex080408.log" : No such file or directory Setup ('C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.Artstruggle.conf' file, web s erver or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
It seems that the config file is ok, but it looks like the problem is that AWStats cannot read "C:\WINDOWS\system32\LogFiles\W3SVC1954162661\ex080408.log ". Check the permissions of the log file, as it seems that it is not readable by awstats.pl .
I cleared all log files from this folder as suggested in the guide, I have just now restored an old log file and renamed it "ex080408.log" and ended up with the following command output.
Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\stevenl>cd C:\Inetpub\wwwroot\AWStats\cgi-bin
C:\Inetpub\wwwroot\AWStats\cgi-bin>awstats.pl -config=Artstruggle -update Create/Update database for config "C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.Ar tstruggle.conf" by AWStats version 6.7 (build 1.892) From data in log file "C:\WINDOWS\system32\LogFiles\W3SVC1954162661\ex080408.log "… Phase 1 : First bypass old records, searching new record… Searching new records from beginning of log file… Jumped lines in file: 0 Parsed lines in file: 26 Found 20 dropped records, Found 6 corrupted records, Found 0 old records, Found 0 new qualified records.
Now when i try to test this from a browser by typing
You are a step further, but I now see two other problems:
1. Your log format is not compatible with AWStats or not correctly defined in AWStats. That's why all the records are "dropped" or "corrupted". Check our page about log formats or paste here:
- the line starting with "LogFormat=…" from your AWStats config file; - a typical line from your log file; - the line from the log file starting with "#Fields: ".
2. I get the same error message when I go to the home page of http://stats.com/. Is stats.com your website ? If not, then replace stats.com by the domain name of your web site.
The format of your log file is not compatible with AWStats. AWStats needs a field with the number of bytes sent by the server to the client (called sc-bytes by IIS and %bytesd by AWStats). This field is used to calculate bandwidth.
This should work for everyhting but the bandwidth figures.
I looked at the example in the PDF. The screenshot at step 11 is not a very good example. A few "dropped" and "corrupted" records are acceptable, but, with a good real world example, there should be many more "new qualified" records.
I still don't understand this stats.com thing. It is probably easier to work with a subdomain like stats.your_domain.com .
The steps here (AWStats Installation with Helm) don't build the config file during the awstats install and leave all AWStats sub folders in "c:/" which appears a little easier.
I mentioned in my prevoius post about creating a new config file when i installed perl, that should have been when i installed awstats and if i uninstall it then that won't be a problem.
I'm heading off on holiday for a couple of weeks and not sure if i'll get this sorted out before I go. I'll post at a later date and let you know how things work out.
Another thing to consider is to change the format of your IIS log files. At this time, they do not include the sc-bytes field. This field is mandatory to get complete AWStats reports (see previous message). I also recommend to add the cs(Referer) field: this filed contains the address of the page/site from where your visitors are coming. This is often very useful.