<?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>When Brains Fly &#187; awstats</title>
	<atom:link href="http://www.whenbrainsfly.com/tag/awstats/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whenbrainsfly.com</link>
	<description>An Awesome Blog About Neuroscience, Computer Science, and Technology</description>
	<lastBuildDate>Mon, 28 Jun 2010 01:03:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting Up AWStats</title>
		<link>http://www.whenbrainsfly.com/2009/01/setting-up-awstats/</link>
		<comments>http://www.whenbrainsfly.com/2009/01/setting-up-awstats/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 19:50:02 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[nfsn]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=51</guid>
		<description><![CDATA[My webhost, NearlyFreeSpeech.NET (NFSN) made this pretty easy. 
First, I made sure that my access log was enabled. Then, I made a cgi script in /home/public called awstats.cgi which had the following contents: 

#!/bin/sh
exec nfsn-awstats

(Don&#8217;t forget the line break on the second line.)
Next, I set the file&#8217;s permissions to 755, opened up a browser to [...]]]></description>
			<content:encoded><![CDATA[<p>My webhost, NearlyFreeSpeech.NET (NFSN) made this pretty easy. </p>
<p>First, I made sure that my access log was enabled. Then, I made a cgi script in <code>/home/public</code> called <code>awstats.cgi</code> which had the following contents: </p>
<pre>
#!/bin/sh
exec nfsn-awstats
</pre>
<p>(Don&#8217;t forget the line break on the second line.)</p>
<p>Next, I set the file&#8217;s permissions to 755, opened up a browser to <code>http://www.whenbrainsfly.com/awstats.cgi</code>, and did what it told me, which was to enter into the shell:</p>
<pre>cp -r /usr/local/www/awstats/icons /home/htdocs/.nfsn-awicons</pre>
<pre><del datetime="2009-12-15T05:41:00+00:00">ln -s /usr/local/www/awstats/icons /home/htdocs/.nfsn-awicons</del>
<small># 2009-12-15: Replaced with cp because images were still broken. Thanks Barb!</small></pre>
<p>Finally, I refreshed and it was all set up!</p>
<p>I wanted to change the time zone used by AWStats, so I went to <code>http://www.whenbrainsfly.com</code> and then in the shell, I entered:</p>
<pre>tail /home/logs/access_log</pre>
<p>to see what time it says the last visit to my site was. It says I visited at 19:27 and it is now actually 14:27, so it&#8217;s 5 hours early (or is it late?).</p>
<p>In the shell, I changed the permissions of <code>/home/private/</code> to 711 to make my files there executable. Then I created a file named <code>.awstats.conf</code> there and changed its permissions to 644.</p>
<p>Within <code>.awstats.conf</code>, I put</p>
<pre>
SiteDomain="www.whenbrainsfly.com"
HostAliases="whenbrainsfly.nfshost.com www.whenbrainsfly.com"

LoadPlugin="timezone -5"
</pre>
<p>The first two lines let me combine stats from both aliases of my site into one, and the last line handles the time zone shift.</p>
<p>Then, I had to rebuild the monthly reports (of which there was only one), so I went to <code>/home/tmp/</code> deleted all files that matched <code>awstatsMMYYYY.txt</code>, and re-opened <code>http://www.whenbrainsfly.com/awstats.cgi</code> in my browser.</p>
<p>I went down to the Hours section <code>http://www.whenbrainsfly.com/awstats.cgi?framename=mainright#hours</code> and it said &#8220;Hours (GMT -5)&#8221; and the visit times so far looked correct. Hooray!</p>
<p>To double-check that my configuration settings were applied, I looked at <code>/home/tmp/nfsn-awstats.conf</code> and confirmed that what I had written in <code>.awstats.conf</code> was there. </p>
<p>So now you can find my site stats at <a href="http://www.whenbrainsfly.com/awstats.cgi">http://www.whenbrainsfly.com/awstats.cgi</a>.</p>
<p>Reference:<br />
<a href="https://members.nearlyfreespeech.net/wiki/HowTo/AWstats">https://members.nearlyfreespeech.net/wiki/HowTo/AWstats</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/01/setting-up-awstats/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
