<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HowToBSD &#187; awstats</title>
	<atom:link href="http://howtobsd.com/ru/tag/awstats/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>ru-RU</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to append Cityes statistic in awstats (GeoLiteCity)</title>
		<link>http://howtobsd.com/ru/software/how-to-append-cityes-statistic-in-awstats-geolitecity.html</link>
		<comments>http://howtobsd.com/ru/software/how-to-append-cityes-statistic-in-awstats-geolitecity.html#comments</comments>
		<pubDate>Tue, 15 Jun 2010 17:28:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[awstats]]></category>

		<guid isPermaLink="false">http://howtobsd.com/ru/?p=140</guid>
		<description><![CDATA[I suppose you have already installed awstats statistic, GeoIP plagin etc.. change default script which update database file about countries (GeoIP.dat): # vim /usr/local/bin/geoipupdate.sh #!/bin/sh cd /tmp fetch http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz fetch http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz fetch http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz gunzip GeoIP.dat.gz gunzip GeoLiteCity.dat.gz gunzip GeoIPASNum.dat.gz mv -f GeoIP.dat /usr/local/share/GeoIP/ mv -f GeoLiteCity.dat /usr/local/share/GeoIP/ mv -f GeoIPASNum.dat /usr/local/share/GeoIP/ I mark string wich [...]]]></description>
				<content:encoded><![CDATA[<p>I suppose you have already installed awstats statistic, GeoIP plagin etc..</p>
<p>change default script which update database file about countries (GeoIP.dat):</p>
<p><code># vim  /usr/local/bin/geoipupdate.sh</code></p>
<p><code>#!/bin/sh<br />
cd /tmp<br />
fetch http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz<br />
<strong>fetch http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz<br />
fetch http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz</strong><br />
gunzip GeoIP.dat.gz<br />
<strong>gunzip GeoLiteCity.dat.gz<br />
gunzip GeoIPASNum.dat.gz</strong><br />
mv -f GeoIP.dat /usr/local/share/GeoIP/<br />
<strong>mv -f GeoLiteCity.dat /usr/local/share/GeoIP/<br />
mv -f GeoIPASNum.dat /usr/local/share/GeoIP/</strong></code></p>
<p>I <strong>mark</strong> string wich I&#8217;ve added.</p>
<p>Run script and put in /etc/crontab if you want always keep base in actual condition.</p>
<p>after that add in awstats config your site:<br />
<code># vim /usr/local/etc/awstats/awstats.howtobsd.info.conf</code></p>
<p><code>#LoadPlugin="geoip"<br />
LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat"<br />
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/share/GeoIP/GeoLiteCity.dat"<br />
LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /usr/local/share/GeoIP/GeoIPASNum.dat"</code></p>
<p>awstats statistic before:</p>
<p><a title="awstats before append GeoLiteCity" href="http://howtobsd.com/wp-content/uploads/2010/06/awstats_before.jpg"><img class="size-full wp-image-148  alignnone" title="awstats-before" src="http://howtobsd.com/./wp-content/uploads/2010/06/awstats-before.jpg" alt="awstats-before" width="480" height="265" /></a></p>
<p>awstats statistic after:</p>
<p><a href="http://howtobsd.com/wp-content/uploads/2010/06/awstats_after.jpg"><img class="size-full wp-image-150  alignnone" title="awstats-after" src="http://howtobsd.com/./wp-content/uploads/2010/06/awstats-after.jpg" alt="awstats-after" width="480" height="284" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/software/how-to-append-cityes-statistic-in-awstats-geolitecity.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with awstats:Can&#8217;t locate Geo/IP.pm in @INC</title>
		<link>http://howtobsd.com/ru/solutions/problem-with-awstatscant-locate-geoip-pm-in-inc.html</link>
		<comments>http://howtobsd.com/ru/solutions/problem-with-awstatscant-locate-geoip-pm-in-inc.html#comments</comments>
		<pubDate>Tue, 15 Jun 2010 12:49:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/ru/?p=138</guid>
		<description><![CDATA[The problem: Error: Plugin load for plugin 'geoip' failed with return code: Error: Can't locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/www/awstats/cgi-bin/lib /usr/local/www/awstats/cgi-bin/plugins) at (eval 4) line 1. Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/www/awstats/cgi-bin/lib /usr/local/www/awstats/cgi-bin/plugins) at (eval 5) line 1. Error: Need [...]]]></description>
				<content:encoded><![CDATA[<p>The problem:<br />
<code>Error: Plugin load for plugin 'geoip' failed with return code: Error: Can't locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/www/awstats/cgi-bin/lib /usr/local/www/awstats/cgi-bin/plugins) at (eval 4) line 1. Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 . /usr/local/www/awstats/cgi-bin/lib /usr/local/www/awstats/cgi-bin/plugins) at (eval 5) line 1. Error: Need Perl module Geo::IP or Geo::IP::PurePerl</code></p>
<p>solution(as root):<br />
#cpan Geo::IP::PurePerl Geo::IP</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/solutions/problem-with-awstatscant-locate-geoip-pm-in-inc.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
