<?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>agungprasetyo.net &#187; awstats</title>
	<atom:link href="http://agungprasetyo.net/tag/awstats/feed/" rel="self" type="application/rss+xml" />
	<link>http://agungprasetyo.net</link>
	<description>It's about my life, goals and family</description>
	<lastBuildDate>Wed, 07 Jul 2010 05:36:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Instalasi awstats di ubuntu server 8.10</title>
		<link>http://agungprasetyo.net/linux/instalasi-awstats-di-ubuntu-server-810/</link>
		<comments>http://agungprasetyo.net/linux/instalasi-awstats-di-ubuntu-server-810/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 00:43:03 +0000</pubDate>
		<dc:creator>prazetyo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[statistik web]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://agungprasetyo.net/?p=60</guid>
		<description><![CDATA[Tutorial ini mengacu pada link ini. Tetapi karena saya menggunakan ubuntu server 8.10, jadi beberapa bagian ada yang berbeda. Karena ubuntu sekarang untuk file konfigurasi apache bukan lagi httpd.conf, tetapi sudah menjadi apache2.conf dan beberapa penggolongan file menjadikannya lebih spesifik, tetapi lebih memusingkan. Karena langkahnya hampir mirip, maka proses pertama kali cek apakah sudah terinstall [...]]]></description>
			<content:encoded><![CDATA[<p>Tutorial ini mengacu pada <a href="http://heker86.wordpress.com/2008/10/27/install-dan-kofigurasi-awstats/" target="_blank">link</a> ini. Tetapi karena saya menggunakan ubuntu server 8.10, jadi beberapa bagian ada yang berbeda. Karena ubuntu sekarang untuk file konfigurasi apache bukan lagi <strong>httpd.conf</strong>, tetapi sudah menjadi <strong>apache2.conf</strong> dan beberapa penggolongan file menjadikannya lebih spesifik, tetapi lebih memusingkan.</p>
<p>Karena langkahnya hampir mirip, maka proses pertama kali cek apakah sudah terinstall <strong>perl</strong>. Pada ubuntu, anda bisa menggunakan perintah :</p>
<blockquote><p><strong>apt-get install perl</strong></p></blockquote>
<p>Oke&#8230; selanjutnya adalah proses instalasi untuk awstats. Sebenarnya untuk instalasi awstats ini juga bisa dilakukan dengan perintah <strong>apt-get install awstats</strong>, tetapi melihat beberapa tutorial di website lain, ada perbedaan path/file yang menyebabkan saya kurang &#8220;sreg&#8221; dengan instalasi hasil apt-get. Jadi memutuskan untuk menggunakan file sourcenya langsung.</p>
<p><span id="more-60"></span></p>
<ol>
<li>Langkah pertama, download terlebih dahulu paket awstats.
<ul>
<li><strong>wget http://prdownloads.sourceforge.net/awstats/awstats-6.8.tar.gz</strong></li>
</ul>
<p><strong><br />
</strong></li>
<li>Lakukan ekstrak ke direktori apache2 anda
<ul>
<li><strong>tar xzvf awstats-6.8.tar.gz -C /var/www/</strong></li>
</ul>
</li>
<li>Pindahlah ke direktori apache anda.
<ul>
<li><strong>cd /var/www/</strong></li>
</ul>
</li>
<li>Rename/rubah nama folder aswtats-6.8 menjadi awstats
<ul>
<li><strong>mv awstats-6.8 awstats</strong></li>
</ul>
</li>
<li>Setelah itu, masuk ke direktori tools
<ul>
<li><strong>cd awstats/tools/</strong></li>
</ul>
</li>
<li>Jalankan script perl di bawah ini untuk membuat file statistiknya.
<ul>
<li><strong>./awstats_configure.pl</strong><br />
—– AWStats awstats_configure 1.0 (build 1.8) (c) Laurent Destailleur  —–<br />
This tool will help you to configure AWStats to analyze statistics  for<br />
one web server. You can try to use it to let it do all that is  possible<br />
in AWStats setup, however following the step by step manual  setup<br />
documentation (docs/index.html) is often a better idea. Above all  if:<br />
- You are not an administrator user,<br />
- You want to analyze downloaded  log files without web server,<br />
- You want to analyze mail or ftp log files  instead of web log files,<br />
- You need to analyze load balanced servers log  files,<br />
- You want to ‘understand’ all possible ways to use AWStats…<br />
Read  the AWStats documentation (docs/index.html).<br />
—–&gt; Running OS detected:  Linux, BSD or Unix<br />
Warning: AWStats standard directory on Linux OS is  ‘/usr/local/awstats’.<br />
If you want to use standard directory, you should first  move all content<br />
of AWStats distribution from current  directory:<br />
/var/www/html/awstats<br />
to standard  directory:<br />
/usr/local/awstats<br />
And then, run configure.pl from this  location.<br />
Do you want to continue setup from this NON standard directory [yN]  ? <strong><strong>y</strong></strong><br />
—–&gt; Check for web server install<br />
Enter full config  file path of your Web server.<br />
Example: /etc/httpd/httpd.conf<br />
Example:  /usr/local/apache2/conf/httpd.conf<br />
Example: c:\Program files\apache  group\apache\conf\httpd.conf<br />
Config file path (’none’ to skip web server  setup):<br />
&gt; <strong><strong>/etc/</strong>apache2/apache2.conf</strong><br />
—–&gt; Check and  complete web server config file ‘/etc/apache2/apache2.conf’<br />
Add Alias ‘/awstatsclasses &#8220;/var/www/awstats/wwwroot/classes/&#8221;‘<br />
Add Alias ‘/awstatscss &#8220;/var/www/awstats/wwwroot/css/&#8221;‘<br />
Add Alias ‘/awstatsicons &#8220;/var/www/awstats/wwwroot/icon/&#8221;‘<br />
Add ‘ScriptAlias /awstats/ &#8220;/var/www/awstats/wwwroot/cgi-bin/&#8221;‘<br />
Add ‘’ directive<br />
AWStats  directives added to Apache config file.<br />
—–&gt; Update model config file  ‘/var/www/awstats/wwwroot/cgi-bin/awstats.model.conf’<br />
File  awstats.model.conf updated.<br />
—–&gt; Need to create a new config file ?<br />
Do  you want me to build a new AWStats config/profile<br />
file (required if first  install) [y/N] ? <strong>y</strong><br />
—–&gt; Define config file name to  create<br />
What is the name of your web site or profile analysis ?<br />
Example:  www.mysite.com<br />
Example: demo<br />
Your web site, virtual server or profile  name:<br />
&gt; <strong>digilib.stikom.edu</strong><br />
—–&gt; Define config file path<br />
In  which directory do you plan to store your config file(s) ?<br />
Default:  /etc/awstats<br />
Directory path to store config file(s) (Enter for  default):<br />
&gt; <strong>&lt;== Silahkan tekan enter saja</strong><br />
—–&gt;  Create config file ‘/etc/awstats/awstats.digilib.stikom.edu.conf’<br />
Config file  /etc/awstats/awstats.digilib.stikom.edu.conf created.<br />
—–&gt; Restart Web server with  ‘/sbin/service httpd restart’<br />
Stopping httpd: [ OK ]<br />
Starting httpd: [ OK  ]<br />
—–&gt; Add update process inside a scheduler<br />
Sorry, configure.pl does  not support automatic add to cron yet.<br />
You can do it manually by adding the  following command to your  cron:<br />
/var/www/awstats/wwwroot/cgi-bin/awstats.pl -update  -config=digilib.stikom.edu<br />
Or if you have several config files and prefer having only  one command:<br />
/var/www/awstats/tools/awstats_updateall.pl now<br />
Press  ENTER to continue… <strong>&lt;== Tekan enter</strong><br />
A SIMPLE config file  has been created: /etc/awstats/awstats.digilib.stikom.edu.conf<br />
You should have a look  inside to check and change manually main parameters.<br />
You can then manually  update your statistics for ‘digilib.stikom.edu’ with command:<br />
&gt; perl awstats.pl  -update -config=digilib.stikom.edu<br />
You can also read your statistics for ‘digilib.stikom.edu’  with URL:<br />
&gt; http://localhost/awstats/awstats.pl?config=digilib.stikom.edu<br />
Press  ENTER to finish… <strong>&lt;== Tekan enter untuk finish</strong></li>
</ul>
</li>
<li>Script awstats_configure.pl tadi secara otomatis akan menambahkan pada file  konfigurasi apache2.conf
<ul>
<li><strong>pico /etc/apache2/apache2.conf</strong><br />
[..]<br />
#<br />
# Directives to allow use of  AWStats as a CGI<br />
#<br />
Alias /awstatsclasses  “/var/www/awstats/wwwroot/classes/”<br />
Alias /awstatscss  “/var/www/awstats/wwwroot/css/”<br />
Alias /awstatsicons  “/var/www/awstats/wwwroot/icon/”<br />
ScriptAlias /awstats/  “/var/www/awstats/wwwroot/cgi-bin/”<br />
#<br />
# This is to permit URL access  to scripts/files in AWStats directory.<br />
#<br />
&lt;Directory &#8220;/var/www/awstats/wwwroot&#8221;&gt;<br />
Options None<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
[..]</li>
</ul>
</li>
<li>Edit file awstats.digilib.stikom.edu.conf menjadi seperti dibawah ini.
<ul>
<li><strong>pico /etc/awstats/awstats.digilib.stikom.edu.conf</strong><br />
<code>LogFile="/var/log/httpd/mylog.log" <strong>menjadi</strong> LogFile="/var/log/apache2/access.log"<br />
DirData="/var/lib/awstats”  <strong>menjadi</strong> DirData="/var/www/awstats"<br />
SiteDomain="digilib.stikom.edu" <strong>&lt;== Pastikan  juga terdapat ini.</strong></code></li>
</ul>
</li>
<li>Jalankan command dibawah ini untuk update database awstats.
<ul>
<li><strong>/var/www/awstats/wwwroot/cgi-bin/awstats.pl -config=digilib.stikom.edu  -update</strong><br />
Create/Update database for config  “/etc/awstats/awstats.digilib.stikom.edu.conf” by AWStats version 6.8 (build  1.910)<br />
From data in log file “/var/log/apache2/access.log”…<br />
Phase 1 : First  bypass old records, searching new record…<br />
Searching new records from  beginning of log file…<br />
Phase 2 : Now process new records (Flush history on  disk after 20000 hosts)…<br />
Jumped lines in file: 0<br />
Parsed lines in file:  123<br />
Found 0 dropped records,<br />
Found 0 corrupted records,<br />
Found 0 old  records,<br />
Found 123 new qualified records.</li>
</ul>
</li>
<li>Kemudian buka browser anda dengan mengetikkan  http://digilib.stikom.edu/awstats/awstats.pl?config=digilib.stikom.edu</li>
<li>Nah, dari sini error mulai muncul. Karena apache2 menggunakan file berbeda untuk penempatan alias, maka anda perlu melakukan sedikit modifikasi agar alias anda dikenali. Edit file apache2.conf.
<ul>
<li><strong>pico /etc/apache2/apache2.conf</strong><br />
[..]<br />
#<br />
# Directives to allow use of  AWStats as a CGI<br />
#<br />
Alias /awstatsclasses  “/var/www/awstats/wwwroot/classes/”<br />
Alias /awstatscss  “/var/www/awstats/wwwroot/css/”<br />
Alias /awstatsicons  “/var/www/awstats/wwwroot/icon/”<br />
ScriptAlias /awstats/  “/var/www/awstats/wwwroot/cgi-bin/”<br />
#<br />
# This is to permit URL access  to scripts/files in AWStats directory.<br />
#<br />
&lt;Directory &#8220;/var/www/awstats/wwwroot&#8221;&gt;<br />
Options None<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
[..]</li>
</ul>
</li>
<li>Carilah bagian script seperti contoh diatas, lalu lakukan Copy dan Paste ke file alias.conf. Anda bisa membuka 2 terminal untuk proses ini atau melakukan Paste terlebih dahulu di misalkan notepad atau editor yang anda sukai.
<ul>
<li><strong>pico /etc/apache2/mods-available/alias.conf</strong><br />
&lt;IfModule alias_module&gt;<br />
#<br />
# Aliases: Add here as many aliases as you need (with no limit). The format is<br />
# Alias fakename realname<br />
#<br />
# Note that if you include a trailing / on fakename then the server will<br />
# require it to be present in the URL.  So &#8220;/icons&#8221; isn&#8217;t aliased in this<br />
# example, only &#8220;/icons/&#8221;.  If the fakename is slash-terminated, then the<br />
# realname must also be slash terminated, and if the fakename omits the<br />
# trailing slash, the realname must also omit it.<br />
#<br />
# We include the /icons/ alias for FancyIndexed directory listings.  If<br />
# you do not use FancyIndexing, you may comment this out.<br />
#<br />
Alias /awstatsclasses &#8220;/var/www/awstats/wwwroot/classes/&#8221;<br />
Alias /awstatscss &#8220;/var/www/awstats/wwwroot/css/&#8221;<br />
Alias /awstatsicons &#8220;/var/www/awstats/wwwroot/icon/&#8221;<br />
ScriptAlias /awstats/ &#8220;/var/www/awstats/wwwroot/cgi-bin/&#8221;</p>
<p>#<br />
# This is to permit URL access to scripts/files in AWStats directory.<br />
#<br />
&lt;Directory &#8220;/var/www/awstats/wwwroot&#8221;&gt;<br />
Options None<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
[..]</li>
</ul>
</li>
<li>Jika sudah, simpan file <strong>alias.conf</strong>. Sedangkan untuk potongan script alias dari awstats pada file <strong>apache2.conf</strong>, hapus saja.</li>
<li>Sekarang buka kembali http://digilib.stikom.edu/awstats/awstats.pl?config=digilib.stikom.edu, dan <strong>violaa!!!</strong> aplikasi awstats berjalan sukses!</li>
<li>Untuk melakukan update database melalui browser, anda harus merubah command seperti dibawah ini.
<ul>
<li><strong>pico /etc/awstats/</strong><strong>awstats.digilib.stikom.edu.conf</strong><br />
AllowToUpdateStatsFromBrowser=0  <strong>menjadi</strong><br />
AllowToUpdateStatsFromBrowser=1</li>
</ul>
</li>
<li>Serta jangan lupa juga merubah permision folder di bawah ini.
<ul>
<li><strong>chmod 777 -R /var/log/apache2/</strong></li>
<li><strong>chmod 777 -R  /var/www/awstats/<br />
</strong></li>
</ul>
</li>
<li>Sekarang buka kembali browser anda dan click tombol <strong>“Update  Now”<br />
</strong><a href="http://agungprasetyo.net/wp-content/uploads/2008/11/update.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-62" title="update" src="http://agungprasetyo.net/wp-content/uploads/2008/11/update-300x63.jpg" alt="" width="300" height="63" /></a><br />
<em>copyright image by heker86.wordpress.com</em><br />
<strong> </strong></li>
<li>Maka secara otomatis database awstats akan terupdate, coba perhatikan  HITS &#8211; nya apakah ada perubahan atau  tidak. Jika ada, maka <strong>selamat!</strong> anda baru saja mempunyai tools untuk menganalisa statistik log dari sistem anda.</li>
</ol>
<p>Nah, itulah sedikit pengalaman sewaktu instalasi awstats kemarin. Bagi yang tidak menggunakan ubuntu bisa mengacu pada link heker86, tetapi jika anda menggunakan ubuntu, saya berharap tutorial ini berguna dan bermanfaat bagi anda.</p>
]]></content:encoded>
			<wfw:commentRss>http://agungprasetyo.net/linux/instalasi-awstats-di-ubuntu-server-810/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
