/var/net/sys/admin/blog
| More

This is a continuation procedure for AWStats installation.

PROCEDURES:

GeoIP Information will show country information in AWStats.

1.    Download the current GeoLite Country from the internet
1. #wget http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz

2.    Create GeoIP directory
# mkdir /usr/local/share/GeoIP

3.    Move data files to directory and unzip.
#mv GeoIP.dat.gz /usr/local/share/GeoIP/
#gunzip /usr/local/share/GeoIP/GeoIP.dat.gz

4.    Install the GeoIP program
#wget http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.3.tar.gz
#cd /usr/local/src
#tar zxvf GeoIP-1.4.3.tar.gz
#cd /usr/local/src/GeoIP-1.4.3
#./configure
#make
#make check
#make install

#vi /etc/ld.so.conf
add the line:
/usr/local/lib

#ldconfig

5.    Install Geo::IP Perl Module

#wget http://www.maxmind.com/download/geoip/api/perl/Geo-IP-1.27.tar.gz

#cd /usr/local/src
#tar zxvf Geo-IP-1.27.tar.gz
#cd /usr/local/src/Geo-IP-1.27
#perl Makefile.PL LIBS=’-L/usr/local/lib’
#make
#make test
#make install

6.    Update your awstats.yoursite.conf configuration file
Add this line:
LoadPlugin=”geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat”

Leave a comment

Name: (Required)

E-mail: (Required)

Website:

Comment:

 

About FLT

This site is dedicated to everyone who likes to learn and explore the beautiful world of Linux. If you have comments and suggestions, please feel free to email at comments@freelinuxtutorials.com. I am happy to serve and share things esp. that is free and enjoyable as Linux.