Steps of installation of AWstats 1) wget awstats-6.6.1-noarch.rpm Try wget from http://awstats.sourceforge.net/2) rpm -Uvh awstats-6.6.1-noarch.rpm 3)cd /usr/local/awstats/tools/ --> /etc/httpd/conf/httpd.conf (httpd config path) --> www.abc.com (domain name) --> /etc/awstats (enter for default awstat config path) 4) vi /etc/awstats/awstats.www.abc.com.conf --> logFile="/var/log/httpd/access_log" to set awstats config of httpd log path5) mkdir /var/lib/awstats set awstats txt database directory path6) wget Geo-IP-PurePerl-1.18.tar.gz (or wget Geo-IPfree.tar.gz) To make the plugin MODULES"--> tar -zxvf Geo-IP-PurePerl-1.18.tar.gz --> perl Makefile.pl --> make --> make install 7) mkdir /usr/local/share/GeoIP Create the folder for plugin .dat8)
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz 9)
wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz 10) vi /etc/awstats/awstats.www.abc.com.conf uncomment and modify as below:--> Loadplugin="LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/share/GeoIP/GeoLiteCity.dat" --> LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat" --> LoadPlugin="GeoIPFree" necessary if use GeoIPfree 11) LANG=C /usr/local/awstats/tools/awstats_updateall.pl now orLANG=C /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=www.abc.com -update Generate/Re-generate the txt database of awstats, wait long time12) crontab -e --> 0 0 * * * LANG=C /usr/local/awstats/tools/awstats_updateall.pl now &> /dev/nullSet cron job for update awstats everynight 13) use htpasswd and .htaccess to protect the page with authenication 14) Check and modify httpd.conf like as this and then restart httpd
/etc/init.d/httpd reload Server is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |