With data in log file "/opt/squid/logs/2". plĪwstats-6.5/Update for config "/etc/awstats/" $List = $Files | where Īfter finishing, save the pl file in the awstat\wwwroot\cgi-bin directory, remember to run in powershell >. Write-host "DIREKTORIJ JE :" $TargetFolder -foregroundcolor "Red" ($Website = $(Read-Host "site name (configuration name)")) Param ($Dir = $(Read-host "Please enter the directory where the iis log file is located")), Test effect localhost:port/cgi-bin/?config=View Image Use the command line to start statisticsģ. Set the statistics option in the public settings, and other configuration files only need to modify the log location (LogFile) and the name of the statistics site (SiteDomain).Ģ. It is mainly convenient for statistics of multiple sites. Note: First inherit the settings of another conf file (such as a public setting), and the settings of this file will override the settings of the inherited file. HTMLEndSection="This is the end of the page" HTMLHeadSection="This is the page header" StyleSheet: The location of the style sheet *The logo must be in the icon/other directory SiteDomain="DefaultFile: The default page of the website SiteDomain: Statistics site (must be set)
*Note: IIS6.0 cannot use the format of LogFormat=2, please refer to the example on the previous line for specific settings LogFormat="date time cs-method cs-uri-stem cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes" LogFormat: log format (1-Apache or Lotus Notes log format 2-IIS log format) LogType: log type (W-web log M-mail log F-ftp log) LogFile: The location of the log file (ex%YY-24%MM-24%DD-24 is the past 24 hours format) Internet Information Service (IIS) Manager > Click on the computer name on the left > ISAPI and CGI restrictions > Allow settingsįind and change the model to the host of the site that needs statistics, such as that is, awstats.The main instructions are as follows: Iis site > Function view > Handler mapping, add analysis of pl file suffix Remember the installation path of perl, you will use it later
#ACTIVEPERL 5.20 INSTALL#
Find the directory where the iis log is locatedĪWStats is a program written in perl language, so you must first install the ActivePerl program. You MUST install the package XML-LibXML-Common by itself, BEFORE installing the rest of XML-LibXML.Environment: win7 + iis7 + perl (ActivePerl-5.) + awstats 7.3ġ. At least for the version of XML-LibXML we are using, the package installer doesn't work correctly for the prerequisite XML-LibXML-Common.Manually install the following DLLs into C:\perl\bin\ (for whatever reason, I was having some trouble building these DLLs, so I ended up simply grabbing them from the repository at ).Added University of Winnipeg's Perl Repository (note that the exact repository used depends on your version of ActivePerl) The required packages weren't all located in ActiveState's repository.In order for ActivePerl's PPM to get through our proxy, had to create an environment variable "http_proxy" with value ".com", then re-login.We are using ActiveState ActivePerl 5.8.8.I have recently been through the pains of getting XML::LibXML installed.