So in my example, I created a few files, would import into AWStats, this require you update the file, run the perl –config=Example –update over and over. I didn’t find an automated way when importing existing files. I found if you have very large (many MB or GB), you’ll need to take an approach of having smaller files. Use the script to create a single file or several files to import to AWStats. Misc Things - Here are a few lessons learned. Perl C:\inetpub\s.\cgi-bin\ -config= –update Here is the command, it assumes the file is named and will reside in c:\inetpub\\cgi-bin folder You could also run the scheduled task as SYSTEM. I setup a batch file and put the following commands, then I scheduled to run frequently as an account (Administrator) to access the IIS Logs. HostAliases="localhost 127.0.0.1 REGEX"ĭirData="c:/inetpub//stats/DomainName1"” LogFile="c:/inetpub/logs/logfiles/w3svc1/u_ex%YY-0%MM-0?-0.log" (You might need to tweak this setting) Here are the attributes I updated so far, this could change as I learn more about AWStats I’d suggest using Process Monitor (by sysinternals) What I did was use the default account, ApplicationHostIdentity. You could either setup the app pool to run as a specific account, or use ApplicationHostIdentity. By default, the IIS Log folders only grant permissions to Administrators and SYSTEM. They set a few attributes.ģ) I learned NOT to do Reverse DNS lookup, that really slows down.Ĥ) You might need to adjust permissions on the IIS Logs folders you are reading, it’ll depend on which account you run the application Pool run as. A couple things I didĠ) Make a copy of the to ()ġ) make sure to set the DirData attribute is “DirData="c:/inetpub//stats/DomainName1"”Ģ) Follow the AWStats FAQ, check out the Demo / ScreenShots section. I’m going to defer to the AWStats FAQ section configuring the conf files. This attribute sets at a server level.Ĭ:\windows\system32\inetsrv\appcmd.exe set config "" -section:system.webServer/handlers /.name:"PERL" /.path:"*.pl" /.modules:"IsapiModule" /.scriptProcessor:"C:\Perl\bin\PerlEx30.dll" /.resourceType:"Unspecified" /.requireAccess:"Script" /.preCondition:"bitness32" When prompted for this, go ahead and click Yes. Through IIS Manager, go to Internet Manager This can be v2.0 or v4.0Ĭ:\Windows\System32\inetsrv\appcmd set config /section:applicationPools /.managedPipelineMode:IntegratedĬ:\Windows\System32\inetsrv\appcmd add site /id:12345 /name: /bindings:http/*:80: /physicalPath:c:\inetpub\Ĭ:\Windows\System32\inetsrv\appcmd set app /app.name:/ /applicationPool:"Ĭ:\Windows\System32\inetsrv\appcmd set config -section:system.applicationHost/applicationPools /.enable32BitAppOnWin64:"True" /commit:apphost ‘mkdir c:\inetpub\\stats\domain2’Ĭreate a IIS site with Internet Manager or AppCMD, for this article, I've provided AppCMD commandsĬ:\Windows\System32\inetsrv\appcmd add apppool /name: ‘mkdir c:\inetpub\\stats\domain1’ī) create a folder called c:\inetpub\\stats\Domain2 I'm going to take assumptions on folder names for this article, you can adjust them to fit your environment.ġ) Create a folder in c:\inetpub\ ‘mkdir c:\inetpub\’Ģ) In the AWStats extracted files, copy all folders in the 'These folders will store the various domains stats.Ī) create a folder called c:\inetpub\\stats\Domain1 The link I used is in the format below to access various domains. Go to, download and extract somewhere on your system.įor my purposes, I setup a single separate websites to access my stats. The current version available is AWStats 7.0. The next step, download and extract Awstats. If not, I’ve included a command later in the article how to setup. I installed ActiveState (32 bit ) to C:\Perl If IIS is installed, you’ll want to confirm if the HTTP Handler is already setup. Later in the article, we'll configure IIS. For purposes of this article, download and install the x86 (32 bit) edition of ActiveState. From my testing, I can only get the x86 edition running within IIS. Thankfully, ActiveState provides an x86 and 圆4 Perl implementation. The first thing you'll need is a method to run PERL on Windows. If you have any further questions, comments please feel free to add to the article. I’ll assume you have a Windows Server 2008 or 2008 R2 server with IIS Installed. Here is the order of what I did to get my server up and running. I’m still working on a few config items within AWStats, which if you have suggestions, please let me know. One of the things I couldn't find that covered the steps to get IIS 7.5 up and running. AWStats ( is a free Open Source (Perl based) package. One of things I’ve wanted to evaluate is AWStats for doing analytics on a variety of sites I run.
0 Comments
Leave a Reply. |