Setting up of AWStats in a different Web Server – PART 2

D. AWStats Installation and Configuration

  • Download and install AWStats http://awstats.sourceforge.net/#DOWNLOAD
  • While installing, Script will be automatically launched to configure. awstats_configure.pl script will configure AWStats to analyze statistics for one web server.
  • Configuration looks for Apache. Type ‘none’ and press Enter

  • Web server needs to be setup manually to declare AWStats script as a CGI to build reports dynamically.
  • Configure new profile. Type Y and press Enter

  • Type profile name as “Collaborator3” (any name to identify your application) and press ENTER to Continue…

  • Press ENTER to Finish…

Setting up of AWStats in a different Web Server – PART 1

What is AWStats?

awstats.sourceforge.net describes it as

AWStats is a free powerful and featureful tool that generates advanced web server statistics, graphically. This log analyzer shows you all possible information your log contains, in few graphical web pages.

A sample graphical report is available here. Follow the below steps to setup AWStats in a web server  ( henceforth called as ‘AWStats Server‘) to create graphical statistics of a different Web Server (henceforth called as ‘Web Server’) and how to automate the process.

Pre-requisites:

A. Setup of IIS Logging on ‘Web Server’

  1. Start the Internet Information Services Manager. To do this, click Start, point to Administrative Tools, and then click Internet Information Services.
  2. Double-click your server_name, where server_name is the name of the server.
  3. Expand the Web Site folder.
  4. Right-click the Web site for which you want to turn on logging, and then click Properties.
  5. On the Website tab, select Enable Logging.
  6. Select a format in the Active log format list as “W3C Extended Log File Format”
  7. Click Properties, click the Advanced tab, and then select the below items

Note: If IIS logging is already enabled, move all existing log files to a different location, then enable above settings. In order to ensure that new format is enforced, restart IIS.

  • Point B and C will enable AWStats Server to run PERL programs through IIS

B. Setting up of PERL on ‘AWStats Server’

  1. Download and install MSI Windows Installer of Active Perl Community Edition http://www.activestate.com/activeperl/downloads. Check c:\Perl64\bin\hello.pl to ensure working of Perl scripts.
  2. Open up your IIS Manager (Start > Run > inetmgr) and go to the Web Service Extensions folder. Right click on the “Web Service Extension” folder and choose “Add a new Web service extension…”
  3. Add the title “Perl” and then click “Add…” to add a path to the Perl executable.
  4. Browse to the C:\Perl directory to pick up the Perl executable and add the following path (including the environment variable): C:\Perl\bin\perl.exe “%s” %s
  5. Choose “Set extension status to Allowed” option
  6. If you get the following message, remove the variable that is already in use (most likely the %s without the quotes).
  7. Final check, ensure “Perl” extension is allowed in ‘Web Service Extension’

C. Configure IIS on ‘AWStats Server’ to run PERL extensions

  1. Create a Virtual directory named “skapadmin1”
  2. Set Virtual directory access permissions to run scripts (such as ASP) and execute (such as ISAPI applications or CGI)
  3. Go to the “Web Sites” folder in the IIS Manager and right click on “skapadmin1” virtual directory and select Properties. Then select the “Home Directory” tab and then select “Configuration…” (in the “Applications Settings” section).
  4. Add the following if .pl extension is not available

AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages.

.bin extension as executable files

Do you have Symantec Mail Security, in short SMS, in your environment? Then you must have faced this problem already!

SMS considers Microsoft Office 2007 files including very common office extensions, .xlsx and .docx as executable files and delete them if it is specified as such in your email ‘Filter Policy’.

SMS email tracking log

Verdict:
Disposition: content compliance violation
Filter Policy: delete executable files violations
Attachments: xl/printersettings/printersettings5.bin

You have to trust me that I searched all ways to exclude latest Office files from this false positive but there is no patch available from Symantec and the only solution provided by Symantec is to remove .bin extension from ‘Executable Files’ policy (which you can find in SMS > Policies > Policy Resources > Attachment Lists > Executable Files).

Refer here for same solution from Symantec Website

Conduct Web page load test

In a new task of reducing web page load time of a website, I was extremely using Yslow and Firebug to conduct the initial study on performance and page load test. All you need to  is a Firefox browser with Yslow and Firebug add-ons installed and you would be able to gather and finally understand the bottle necks of your web page performance.

  • Total page size with cache and without cache
  • Size of each content of web page i.e; images, flash, css, html and javascripts
  • Total page load time with cache and without cache
  • load time of each content of web page
  • Total number of requests made to server to load complete web page.

Once you are done with the above study, YSlow also provides suggestions on ‘best practices for speeding up a web site‘. Yahoo exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 35 best practices divided into 7 categories. Follow the link provided above, they are really helpful for web designers.