<?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>Alunduil&#039;s Hosting &#187; statistics</title>
	<atom:link href="http://www.alunduil.com/tag/statistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alunduil.com</link>
	<description>Gentoo Hackery and Other Fun ...</description>
	<lastBuildDate>Sun, 01 May 2011 22:00:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Running awstats on Gentoo</title>
		<link>http://www.alunduil.com/2010/03/02/running-awstats-on-gentoo/</link>
		<comments>http://www.alunduil.com/2010/03/02/running-awstats-on-gentoo/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 16:31:40 +0000</pubDate>
		<dc:creator>Alex Brandt</dc:creator>
				<category><![CDATA[Linux Guides]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.alunduil.com/?p=102</guid>
		<description><![CDATA[Requirements I&#8217;m assuming for this quick guide that you already have a website installed and consequently apache. emerge -av awstats A quick breakdown on the use flags from gentookit&#8217;s equery: apache2 : Add Apache2 support geoip : Add geoip support for country and city lookup based on IPs vhosts : Adds support for installing web-based <a href='http://www.alunduil.com/2010/03/02/running-awstats-on-gentoo/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h1>Requirements</h1>
<p>I&#8217;m assuming for this quick guide that you already have a website installed and consequently apache.</p>
<p>emerge -av awstats</p>
<p>A quick breakdown on the use flags from gentookit&#8217;s equery:</p>
<ul>
<li>apache2 : Add Apache2 support</li>
<li>geoip   : Add geoip support for country and city lookup based on IPs</li>
<li>vhosts  : Adds support for installing web-based applications into a virtual-hosting environment</li>
</ul>
<h1><strong>Configuration</strong></h1>
<p>Lots of configuration needs to occur for awstats to work correctly:</p>
<p>First, we need to setup a configuration file for the web site so we can update the statistics.<br />
cp /etc/awstats/awstats.model.conf /etc/awstats/awstats..conf</p>
<p>Where fqdn is the fully qualified domain name of your website you&#8217;ll be monitoriing.  After you&#8217;ve copied the default configuration customize it for your particular website.</p>
<p>Second, you need to enable awstats in your apache vhost configuration:</p>
<p>CustomLog /var/www/localhost/log/apache/production.log combined</p>
<p>Alias /awstats/classes &#8220;/usr/share/webapps/awstats/6.9-r1/htdocs/classes/&#8221;<br />
Alias /awstats/css &#8220;/usr/share/webapps/awstats/6.9-r1/htdocs/css/&#8221;<br />
Alias /awstats/icons &#8220;/usr/share/webapps/awstats/6.9-r1/htdocs/icon/&#8221;<br />
ScriptAlias /awstats/ &#8220;/usr/share/webapps/awstats/6.9-r1/hostroot/cgi-bin/&#8221;<br />
ScriptAlias /awstats &#8220;/usr/share/webapps/awstats/6.9-r1/hostroot/cgi-bin/awstats.pl&#8221;<br />
ScriptAlias /awstats.pl &#8220;/usr/share/webapps/awstats/6.9-r1/hostroot/cgi-bin/awstats.pl&#8221;<br />
Options None<br />
AllowOverride None</p>
<p>Order allow,deny<br />
Allow from all</p>
<p>Options ExecCGI<br />
AllowOverride None</p>
<p>Order allow,deny<br />
Allow from all</p>
<p>Options None<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
Options None<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all</p>
<p>And verify the logging output in /etc/apache2/modules.d/00_mod_log_config.conf:<br />
# The following directives define some format nicknames for use with<br />
# a CustomLog directive (see below).<br />
LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221;" combined<br />
LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b&#8221; common</p>
<p>LogFormat &#8220;%{Referer}i -&gt; %U&#8221; referer<br />
LogFormat &#8220;%{User-Agent}i&#8221; agent<br />
LogFormat &#8220;%v %h %l %u %t \&#8221;%r\&#8221; %&gt;s %b %T&#8221; script<br />
LogFormat &#8220;%v %h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221; VLOG=%{VLOG}e&#8221; vhost<br />
# You need to enable mod_logio.c to use %I and %O<br />
LogFormat &#8220;%h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221; %I %O&#8221; combinedio<br />
LogFormat &#8220;%v %h %l %u %t \&#8221;%r\&#8221; %&gt;s %b \&#8221;%{Referer}i\&#8221; \&#8221;%{User-Agent}i\&#8221; %I %O&#8221; vhostio</p>
<p># The location and format of the access logfile (Common Logfile Format).<br />
# If you do not define any access logfiles within a<br />
# container, they will be logged here.  Contrariwise, if you *do*<br />
# define per- access logfiles, transactions will be<br />
# logged therein and *not* in this file.<br />
CustomLog /var/log/apache2/access_log common</p>
<p># If you would like to have agent and referer logfiles,<br />
# uncomment the following directives.<br />
#CustomLog /var/log/apache2/referer_log referer<br />
#CustomLog /var/log/apache2/agent_logs agent</p>
<p># If you prefer a logfile with access, agent, and referer information<br />
# (Combined Logfile Format) you can use the following directive.<br />
#CustomLog /var/log/apache2/access_log combined</p>
<p>And Lastly, you need to add a cron entry to update the statistics on a regular basis:<br />
# AWStats<br />
*/15 * * * * perl /usr/share/webapps/awstats/6.9-r1/hostroot/cgi-bin/awstats.pl -config=www.alunduil.com -update &gt; /dev/null</p>
<p>Everything should be running smoothly but give your installation some time to begin collecting statistics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alunduil.com/2010/03/02/running-awstats-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/10 queries in 0.012 seconds using memcached
Object Caching 250/261 objects using memcached

Served from: www.alunduil.com @ 2012-02-07 23:54:37 -->
