Install Awstats di CentOS

Awstats adalah software gratis yang berguna untuk analisis log statistik dari server kita seperti web, ftp, mail, wap, proxy dan streaming server. Kemudian awstats ak menjalankan semua hasilnya dengan menggunakan via web menggunakan cgi.

1. Download awstats disini
[root@localhost tools]# wget

2. Untuk instalasi pastikan kita memiliki perl, kalau belum dapat install perl
[root@localhost tools]# yum -y install perl

3. Extract awstats di dalam direktory apache
[root@localhost tools]# cd /var/www/html
[root@localhost tools]# tar zxvf awtstats-6.7.tar.gz
[root@localhost tools]# mv awstats-6.7 awstats

4. setelah di extract kita dapat install awstats seperti di bawah ini
[root@localhost tools]# mv awstats-6.7 awstats
[root@localhost tools]# ./
—– AWStats awstats_configure 1.0 (build 1.8) (c) Laurent Destailleur —–
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
– You are not an administrator user,
– You want to analyze downloaded log files without web server,
– You want to analyze mail or ftp log files instead of web log files,
– You need to analyze load balanced servers log files,
– You want to ‘understand’ all possible ways to use AWStats…
Read the AWStats documentation (docs/index.html).

—–> Running OS detected: Linux, BSD or Unix
Warning: AWStats standard directory on Linux OS is ‘/usr/local/awstats’.
If you want to use standard directory, you should first move all content
of AWStats distribution from current directory:
to standard directory:
And then, run from this location.
Do you want to continue setup from this NON standard directory [yN] ?
—–> Check for web server install

Enter full config file path of your Web server.
Example: /etc/httpd/httpd.conf
Example: /usr/local/apache2/conf/httpd.conf
Example: c:\Program files\apache group\apache\conf\httpd.conf
Config file path (’none’ to skip web server setup):

—–> Check and complete web server config file ‘/etc/httpd/conf/httpd.conf’
Add ‘Alias /awstatsclasses “/var/www/html/awstats/wwwroot/classes/”‘
Add ‘Alias /awstatscss “/var/www/html/awstats/wwwroot/css/”‘
Add ‘Alias /awstatsicons “/var/www/html/awstats/wwwroot/icon/”‘
Add ‘ScriptAlias /awstats/ “/var/www/html/awstats/wwwroot/cgi-bin/”‘
Add ‘’ directive
AWStats directives added to Apache config file.

—–> Update model config file ‘/var/www/html/awstats/wwwroot/cgi-bin/awstats.model.conf’
File awstats.model.conf updated.

—–> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?y

—–> Define config file name to create
What is the name of your web site or profile analysis ?
Example: demo
Your web site, virtual server or profile name:
> test

—–> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):

—–> Create config file ‘/etc/awstats/awstats.test.conf’
Config file /etc/awstats/awstats.test.conf created.

—–> Restart Web server with ‘/sbin/service httpd restart’
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

—–> Add update process inside a scheduler
Sorry, does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/var/www/html/awstats/wwwroot/cgi-bin/ -update -config=test
Or if you have several config files and prefer having only one command:
/var/www/html/awstats/tools/ now
Press ENTER to continue…

A SIMPLE config file has been created: /etc/awstats/awstats.test.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for ‘test’ with command:
> perl -update -config=test
You can also read your statistics for ‘test’ with URL:
> http://localhost/awstats/

Press ENTER to finish…

5. Pastikan baris-baris di bawah ini ada di dalam file httpd.conf

Alias /awstatsclasses “/var/www/html/awstats/wwwroot/classes/”
Alias /awstatscss “/var/www/html/awstats/wwwroot/css/”
Alias /awstatsicons “/var/www/html/awstats/wwwroot/icon/”
ScriptAlias /awstats/ “/var/www/html/awstats/wwwroot/cgi-bin/”

# This is to permit URL access to scripts/files in AWStats directory.

Options None
AllowOverride None
Order allow,deny
Allow from all

6. Edit file /etc/awstats/awstats.test.conf
[root@localhost tools]# nano /etc/awstats/awstats.test.conf

edit baris ini :





7. Buat file log, yg nantinya berguna utk analisa bila terjadi masalah

[root@localhost tools]# touch /var/log/httpd/test.log

8. Setelah itu update database awstats dengan perintah di bawah ini

[root@localhost tools]# /var/www/html/awstats/wwwroot/cgi-bin/ -update -config=test
Create/Update database for config “/etc/awstats/awstats.test.conf” by AWStats version 6.8 (build 1.910)
From data in log file “/var/log/httpd/access_log”…
Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
Jumped lines in file: 0
Parsed lines in file: 0
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 0 new qualified records.

9. Untuk dapat melihatnya kita bisa lihat di url ini:


1 Response to “Install Awstats di CentOS”

  1. 1 teuing October 30, 2009 at 8:17 am

    naha teu kaharti panjelasan nana. kumaha atuh?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Follow me

October 2008
« Sep   Nov »


Kirim Pesan YM