Categories: Windows

Updating to AWStats7.5.

   On November 11, I updated AWStats from 7.4 to 7.5, as I forgot to do it though I found AWStats7.5 when they released it in April. If you need How To, see ‘Updating to AWStats7.3’.

   At this point my ‘awstats.MyDomain.conf’ and the original ‘awstats.model.conf’ have the next differences.
LogFile="/var/log/httpd/mylog.log"
→ LogFile="x:/Apache24/logs/access.%YYYY-24.%MM-24.%DD-24"
   This setting gives the stats of yesterday when ‘awstats.bat’ runs.

SiteDomain=""
→ SiteDomain="MyDomain"

HostAliases="localhost 127.0.0.1 REGEX[myserver.com$]"
→ HostAliases="MyDomain"

DNSLookup=2
→ DNSLookup=0
   I use GeoIP plugin, so I set DNSLookup=0.

AllowFullYearView=2
→ AllowFullYearView=3

AllowAccessFromWebToFollowingIPAddresses=""
→ AllowAccessFromWebToFollowingIPAddresses="192.168.xxx.1-192.168.xxx.123.255"

#LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"
→ LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"

#LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /pathto/GeoIPCity.dat"
→ LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /pathto/GeoIPCity.dat"

   By the way, I also forgot to write HowTo use GeoIP plugin on AWStats on Windows. The conf says the plugin requires MODULES: Geo::IP or Geo::IP::PurePerl. So add Geo-IP package to ActivePerl by Perl Package Manager Index (PPM).
[Note]: The package name is not ‘Geo::IP’ but ‘Geo-IP’ on ActivePerl.

   GeoIP plugin uses GeoIP Legacy Country and City. You need to get them. You can find GeoLite Legacy Downloadable Databases here and see this page about the instructions of GeoIP Legacy Country Database Installation.

   Since the beginning of GeoIP using I did the steps about installing GeoIP Legacy Country and City manually. But now, as having CygWin on my server, I use a batch file named ‘GeoIP_DATA.bat’ like the below. Run this on the eighth of every month by Task Scheduler because this page says ‘They are updated on the first Tuesday of each month’.
[GeoIP_DATA.bat]

@echo off

pushd Drive_DC:awstatswwwrootcgi-bin
x:cygwinbinwget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
x:cygwinbinwget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
x:cygwinbinbash --login -i -c "gunzip -c /cygdrive/Drive_DC/awstats/wwwroot/cgi-bin/GeoIP.dat.gz > /cygdrive/Drive_DC/awstats/wwwroot/cgi-bin/GeoIP.dat"
x:cygwinbinbash --login -i -c "gunzip -c /cygdrive/Drive_DC/awstats/wwwroot/cgi-bin/GeoLiteCity.dat.gz > /cygdrive/Drive_DC/awstats/wwwroot/cgi-bin/GeoIPCity.dat"
exit

   Customize geoip.pm and geoip_city_maxmind.pm. (Location:Drive_DC:awstatswwwrootcgi-binplugins).
 #!/usr/bin/perl  →  #!Drive_SV:/perl/bin/perl

o6asan

Recent Posts

Very easy, sweet potato yōkan recipe.

The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…

6 months ago

On my home network, I’ve built an FTP server that I left for long time.

After a long time, when I checked broken links and fixed them, I got an…

2 years ago

Moving “o6asan’s BBS”.-#2

I made a box, so I prepare the contents. Theme and Plugins. The theme is…

2 years ago

Moving “o6asan’s BBS”.

Hehe, it's been almost a year since my last post. I received a notification email…

2 years ago

I completed my WordPress to Sub-domain.

About a week ago, I finally started to renew my sites, which I had been…

4 years ago

Happy New Year!

   Happy New Year! It is the beginning of a new year.    This is a year…

5 years ago

This website uses cookies.