存档

‘CGI’ 分类的存档

Install AWStats in Windows IIS Enviroment

2007年3月8日 admin 没有评论

1. What is AWStats?

AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. To install it in the UNIX/Linux environment is pretty straight forward. But the installation in the Windows environment is a little bit tricky.

2. Download at it's Official Site at: http://awstats.sourceforge.net/

3. Pre-Requesit:
(1) Local Administrator Privilege
(2) Perl
(3) Configure IIS to support CGI/Perl

4. Installation:
(1) Put the wwwroot folder of AWStats
(2) Put the classes, css, icon, js folders to the proper places
(3) Copy the awstats.model.conf file, rename it to awstats.your_full_domain_name.conf. Amend the relevant places in this file according to your configuration and locations of above folders.
(4) The /data/ folder should have “Internet Guest Account” Modify permission.
(5) The log file format should be like follows:

LogFormat = “%time2 %method %url %logname %host %other %ua %referer %code %bytesd”

In the IIS's Log Format, it should be like:

Date
Time
Client IP Address
User Name
Method
URI Stem
Protocol Status
Bytes Sent
Protocol Version
User Agent
Referer

(6) Set the “Scheduled Task” in the Control Panel. The command path should like follows:

C:\Perl\bin\perl.exe D:\www\cgi-bin\awstats.pl -config=your.full.domain.name -update

Please be sure to set the schedule and “Run As” account as well as the security of this Scheduled Task.

5. Installation of Geo-IP and Geo-Lite-City Plugins:

GeoIP: Determine the Internet visitor's country based on the IP address.

GeoLiteCity: In addition to country and state/region, determine city, US area code, metro code, latitude, and longitude information for IP addresses worldwide.

For more information about GeoIP and GeoLiteCity, please visit: http://www.maxmind.com/app/ip-location

(1) C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/Geo-IP.ppd
Please download the GeoIP.dat during the installation.

(2) Download the GeoLiteCity.dat at http://www.maxmind.com/app/geolitecity.

(3) Put the GeoIP.dat and GeoLiteCity.dat under the /data/ folder which the “Internet Guest Account” can modify it.

For more information about the installation this PPM package, please visit: http://theoryx5.uwinnipeg.ca/ppms/.

Enjoy it!

分类: CGI 标签: