awstats di backtrack 4
root@bt:~# apt-get install awstats
edit konfigurasi awstats (gw edit yang simple aja, so lo bisa terserah edit deh kalo banyak waktu)
root@bt:~# nano /etc/awstats/awstats.conf
edit jadi:
LogFile="/var/log/apache2/access.log" SiteDomain="gxrg.org"
jalanin script perl update
root@bt:~# perl /usr/lib/cgi-bin/awstats.pl -update -config=gxrg.org Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 6.7 (build 1.892) From data in log file "/var/log/apache2/access.log"... Phase 1 : First bypass old records, searching new record... Direct access after last parsed record (after line 241950) Jumped lines in file: 241950 Found 241950 already parsed records. Parsed lines in file: 2822 Found 0 dropped records, Found 0 corrupted records, Found 0 old records, Found 2822 new qualified records.
buat dan edit file awstats untuk aliases apache2
root@bt:~# nano /etc/apache2/conf.d/awstats
copy paste text ini
Alias /awstatsclasses "/usr/share/awstats/lib/" Alias /awstats-icon/ "/usr/share/awstats/icon/" Alias /awstatscss "/usr/share/doc/awstats/examples/css" ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ ScriptAlias /awstats/ /usr/lib/cgi-bin/ Options ExecCGI -MultiViews +SymLinksIfOwnerMatch <Directory "/usr/share/awstats/"> Options None AllowOverride None Order allow,deny Allow from all </Directory>
sip tinggal lo jalanin pake cron setiap 1 jam sekali biar awstats update stats apache
root@bt:~# crontabe -e
tambahin baris
@hourly /usr/lib/cgi-bin/awstats.pl -update -config=gxrg.org >/dev/null
akses awstats di http://domain/awstats/awstats.pl
Good Luck! ;p
