AWSTATS on Win2003 IIS6
Posted on 2007-03-27
Hi, I'm battling to get AWSTATS installed on a Windows 2003 server box running IIS6.
I've installed the latest version of Active Perl, and awstats6.6 and followed all the installation instructions to a T, but no luck...
When installing the awstats.exe, I already get strange errors (non fatal), stating it cannot find the Apache server etc, which I assumed I could skip, but then it never said/asked anything about IIS6.
I continued anyway, and then continued to copy the files inside the wwwroot folder to a folder (xxx) in inetpub ( I created a new virtual directory pointing /awstats to xxx in inetpub) I gave that new folder execute permissions and then I added perl to the "mapping" of the domain so it knows to invoke c:\perl\bin\perl.exe when it gets a call for xxx.pl
I then changed and renamed the awstats.model.conf file, and sucessfully ran an update from the command line to build the txt file containing the stats.
I can even at this point create a "static" html file from that txt file, but, 1) I cannot invoke www.mydomain.com/awstats/awstats.pl to automagically show me the stats and 2) I cannot for some reason get the command to create the "static" html file to run as a scheduled task - even though the "update" task runs fine.
Please help me.
Also, the person who administers the webserver did'nt create the log files with the correct fields awstats requires to give all the info ( i think he forgot to add referrers and the byte count) - I still would like to see the hits etc however. I still have all those log files in the format exmmddyyyy.log. is there a way I can "force" awstats to eat these "malformed" logfiles anyway and spit out *some* stats?
If so, also help me to run it on all the log files as one command, there is about 150 log files, and I would prefer not to have to type 150 different commands...