<?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>vincentkong.com &#187; AWStats</title>
	<atom:link href="http://www.vincentkong.com/tag/awstats/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vincentkong.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 25 Dec 2011 01:35:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Generate Static Reports with AWStats</title>
		<link>http://www.vincentkong.com/2008/12/generate-static-reports-with-awstats</link>
		<comments>http://www.vincentkong.com/2008/12/generate-static-reports-with-awstats#comments</comments>
		<pubDate>Mon, 08 Dec 2008 23:27:50 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[AWStats]]></category>

		<guid isPermaLink="false">http://www.vincentkong.com/?p=223</guid>
		<description><![CDATA[AWStats is a free web analytics reporting tool, suitable for analyzing data from Internet services such as web, mail and FTP servers. AWStats parses and analyzes server log files, producing html reports. Data is visually presented within reports by tables &#8230; <a href="http://www.vincentkong.com/2008/12/generate-static-reports-with-awstats">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://www.vincentkong.com/2007/06/awstats-quickstart-guide' rel='bookmark' title='AWStats Quickstart Guide'>AWStats Quickstart Guide</a></li>
<li><a href='http://www.vincentkong.com/2009/01/creating-static-ip-in-xubuntu-810' rel='bookmark' title='Creating static IP in Xubuntu 8.10'>Creating static IP in Xubuntu 8.10</a></li>
<li><a href='http://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>AWStats is a free web analytics reporting tool, suitable for analyzing data from Internet services such as web, mail and FTP servers. AWStats parses and analyzes server log files, producing html reports. Data is visually presented within reports by tables and bar graphs. To install and configure AWStats refer to the <a href="http://www.vincentkong.com/2007/06/awstats-quickstart-guide/">AWStats Quickstart Guide</a>.</p>
<p>AWStats provides two methods to generate reports: dynamically using the <code>awstats.pl</code> CGI script or statically using the <code>awstats_buildstaticpages.pl</code> helper script.  If you do not want to make your reports available to the web then you can generate static reports to view on your local machine.</p>
<h4>To generate static HTML reports</h4>
<p><code>$ cd /opt/awstats/tools/<br />
$ awstats_buildstaticpages.pl -config=mysite -awstatsprog=/opt/awstats/wwwroot/cgi-bin/awstats.pl -month=MM -year=yyyy -builddate=yyyy-MM -dir=output_directory</code></p>
<p><code>-configdir</code> Sets the path of the directory which contains the configuration files.<br />
<code>-awstatsprog</code> Sets the path to the awstats.pl script.<br />
<code>-builddate</code> Adds month and year info in the report’s filename.<br />
<code>-dir</code> Sets the directory where the report files should be saved.</p>
<h4>To generate PDF reports</h4>
<p>The <code>htmldoc</code> package is required to be installed</p>
<p><code>$ apt-get install htmldoc</code></p>
<p>Then run the same command as generating static HTML reports with the addition of the following options:</p>
<p><code>-buildpdf</code> Creates a PDF file, after the generation of the HTML pages is done.<br />
<code>-diricons</code> Relative path to use as icon dir in <img alt="" /> links (To create a PDF file specific an absolute path)</p>
<p><code>$ awstats_buildstaticpages.pl -config=mysite -awstatsprog=/opt/awstats/wwwroot/cgi-bin/awstats.pl -month=MM -year=yyyy -builddate=yyyy-MM -buildpdf -diricons=/opt/awstats/wwwroot/icon -dir=output_directory</code></p>


<p>Related posts:<ol><li><a href='http://www.vincentkong.com/2007/06/awstats-quickstart-guide' rel='bookmark' title='AWStats Quickstart Guide'>AWStats Quickstart Guide</a></li>
<li><a href='http://www.vincentkong.com/2009/01/creating-static-ip-in-xubuntu-810' rel='bookmark' title='Creating static IP in Xubuntu 8.10'>Creating static IP in Xubuntu 8.10</a></li>
<li><a href='http://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vincentkong.com/2008/12/generate-static-reports-with-awstats/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWStats Quickstart Guide</title>
		<link>http://www.vincentkong.com/2007/06/awstats-quickstart-guide</link>
		<comments>http://www.vincentkong.com/2007/06/awstats-quickstart-guide#comments</comments>
		<pubDate>Mon, 11 Jun 2007 15:26:47 +0000</pubDate>
		<dc:creator>Vincent Kong</dc:creator>
				<category><![CDATA[AWStats]]></category>

		<guid isPermaLink="false">http://wordpress.vincentkong.com/?p=79</guid>
		<description><![CDATA[AWStats is a free web analytics reporting tool, suitable for analyzing data from Internet services such as web, mail and FTP servers. AWStats parses and analyzes server log files, producing html reports. Data is visually presented within reports by tables &#8230; <a href="http://www.vincentkong.com/2007/06/awstats-quickstart-guide">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://www.vincentkong.com/2008/12/generate-static-reports-with-awstats' rel='bookmark' title='Generate Static Reports with AWStats'>Generate Static Reports with AWStats</a></li>
<li><a href='http://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
<li><a href='http://www.vincentkong.com/2007/05/apache-for-ubuntu-quickstart-guide' rel='bookmark' title='Apache for Ubuntu Quickstart Guide'>Apache for Ubuntu Quickstart Guide</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>AWStats is a free web analytics reporting tool, suitable for analyzing data from Internet services such as web, mail and FTP servers. AWStats parses and analyzes server log files, producing html reports. Data is visually presented within reports by tables and bar graphs.</p>
<p><strong>Installing AWStats</strong></p>
<p>To install AWStats I chose to download the package from the <a title="http://awstats.sourceforge.net/" href="http://awstats.sourceforge.net/">http://awstats.sourceforge.net/</a> website instead of installing it through the Ubuntu package manager. The reason behind this was because I felt the directory structure created by the Ubuntu package manager was too messy. AWStats recommend to install the package inside the <code>/usr/local/awstats</code> directory, however I decided to put it in <code>/opt</code> and create a symbolic link instead.</p>
<pre>$ cd /opt
$ wget http://prdownloads.sourceforge.net/awstats/awstats-6.6.tar.gz
$ tar -zxvf awstats-6.6.tar.gz
$ ln -s awstats-6.6 awstats</pre>
<p><strong>Configuring AWStats</strong></p>
<p>AWStats can be configuring using an automated script or manually. To configure AWStats using the automated script using the following command:</p>
<p><code>$ /opt/awstats/tools/awstats_configure.pl </code></p>
<p><strong></strong></p>
<p>The following are the steps to configure AWStats manually:</p>
<p><strong>Setup Virtual Host for Apache</strong></p>
<pre>&lt;VirtualHost&gt;
    DocumentRoot /opt/awstats/wwwroot
    #
    # Directives to allow use of AWStats as a CGI
    #
    Alias /awstatsclasses "/opt/awstats/wwwroot/classes/"
    Alias /awstatscss "/opt/awstats/wwwroot/css/"
    Alias /awstatsicons "/opt/awstats/wwwroot/icon/"
    ScriptAlias /awstats/ "/opt/awstats/wwwroot/cgi-bin/"
    #
    # This is to permit URL access to scripts/files in AWStats directory.
    #
    &lt;Directory&gt;
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre>
<p><strong>Creating a Config/Profile for AWStats</strong></p>
<p>Creating a new configuration file in <code>/etc/awstats</code> by copying the template <code>awstats.model.conf</code>. Where mysite is the profile name.</p>
<p><code>$ cp /opt/awstats/wwwroot/cgi-bin/awstats.model.conf /etc/awstats/awstats.mysite.conf </code></p>
<p>The configuration file <code>awstats.mysite.conf</code> contains numerous parameters. To have AWStats configured correctly for your profile the following parameters must be verify correctly.</p>
<ul>
<li><code>LogFile</code> The path to the server log file.</li>
<li><code>LogType</code> The log file type &#8220;W&#8221; is for web log file.</li>
<li><code>LogFormat</code> The log format &#8220;1&#8243; is for Apache combined log format.</li>
<li><code>SiteDomain </code>The domain name of the website.</li>
</ul>
<p>Other useful parameters are:</p>
<ul>
<li><code>DNSLookup</code> Make reverse DNS lookups, &#8220;1&#8243; DNS Lookup is fully enabled</li>
<li><code>SkipHosts</code> Do not include access from clients that match following criteria</li>
</ul>
<p>For more information on all the parameters refer to <a title="http://awstats.sourceforge.net/docs/awstats_config.html" href="http://awstats.sourceforge.net/docs/awstats_config.html">http://awstats.sourceforge.net/docs/awstats_config.html</a></p>
<p><strong>Running/Building Statistic Database</strong></p>
<p>It&#8217;s recommend to run/build the statistic database from the command line:</p>
<p><code>$ /opt/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite -update </code></p>
<p>By default the statistic database is located in the directory <code>/var/lib/awstats</code>, but can be changed with the <code>DirData</code> parameter in the configuration file.</p>
<p>If log file rotation is implemented for your server, for example on a monthly basis, then there is a chance the last couple of visits from the preivous log file might not be included during the database update. You can run AWStats to override the log file that is defined configuration file.</p>
<p><code>$ /opt/awstats/wwwroot/cgi-bin/awstats.pl -config=mysite -LogFile=/path/to/previous/month/logfile </code></p>
<p>The update process can only accept files in chronological order, so if you have already processed a recent file, you must delete all the statistics database in <code>/var/lib/awstats</code> that is newer than the log file specified in the above command.</p>
<p><strong>Viewing AWStats Reports</strong></p>
<p>AWStats can generate static HTML reports or dynamically with their CGI program. To view reports dynamically, point your browser to http://www.example.com/awstats/awstats.pl?config=mysite</p>
<p>For more information refer to the AWStats <a href="http://awstats.sourceforge.net/docs">documentation</a>.<a title="http://awstats.sourceforge.net/docs" href="http://awstats.sourceforge.net/docs"></a></p>


<p>Related posts:<ol><li><a href='http://www.vincentkong.com/2008/12/generate-static-reports-with-awstats' rel='bookmark' title='Generate Static Reports with AWStats'>Generate Static Reports with AWStats</a></li>
<li><a href='http://www.vincentkong.com/2007/05/tomcat-55-for-ubuntu-quickstart-guide' rel='bookmark' title='Tomcat 5.5 for Ubuntu Quickstart Guide'>Tomcat 5.5 for Ubuntu Quickstart Guide</a></li>
<li><a href='http://www.vincentkong.com/2007/05/apache-for-ubuntu-quickstart-guide' rel='bookmark' title='Apache for Ubuntu Quickstart Guide'>Apache for Ubuntu Quickstart Guide</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vincentkong.com/2007/06/awstats-quickstart-guide/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

