Install awstat-6.5 di RHEL 5.1

Pertama download dulu awstat nya..googling aja ya..coz lupa dapat linknya darimana πŸ˜€
Kalau udah di download trus di extract..
pastikan paket apache sudah terinstall
copy folder awstat nya ke /var/www/html

[root@localhost]# mv awstat-6.5 /var/www/html

ubah permission awstats_configure.pl agar bisa di eksekusi

chmod 777 awstats_configure.pl
jalankan script awstats_configure.pl ( ada di folder tools )
ikuti perintahnya.

[root@localhost tools]# ./awstats_configure.pl
----- AWStats awstats_configure 1.0 (build 1.6) (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:
/var/www/html/awstats-6.5
to standard directory:
/usr/local/awstats
And then, run configure.pl from this location.
Do you want to continue setup from this NON standard directory [yN] ? y

-----> 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 filesapache groupapacheconfhttpd.conf
Config file path ('none' to skip web server setup):
> /etc/httpd/conf/httpd.conf

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

-----> Update model config file '/var/www/html/awstats-6.5/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: www.mysite.com
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: [FAILED]
Starting httpd: [ OK ]

-----> Add update process inside a scheduler
Sorry, configure.pl 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-6.5/wwwroot/cgi-bin/awstats.pl -update -config=test
Or if you have several config files and prefer having only one command:
/var/www/html/awstats-6.5/tools/awstats_updateall.pl 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 awstats.pl -update -config=test
You can also read your statistics for 'test' with URL:
> http://localhost/awstats/awstats.pl?config=test

Press ENTER to finish...

6. Edit file /etc/awstats/awstats.test.conf

[root@localhost tools]# vim /etc/awstats/awstats.test.conf

edit baris ini :

LogFile=”/var/log/httpd/mylog.log”
menjadi
LogFile=”/var/log/httpd/access_log”

DirData=”/usr/local/awstats/”
menjadi
DirData=”/var/www/html/awstats/wwwroot/cgi-bin”

SiteDomain=”test”
menjadi
SiteDomain=”192.168.100.104β€³

Setelah itu update database awstats dengan perintah di bawah ini

[root@localhost cgi-bin]# /awstats.pl -update -config=test
Update for config "/etc/awstats/awstats.test.conf"
With 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...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 1
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 1 new qualified records.

Untuk dapat melihatnya kita bisa lihat di url ini:
http://192.168.100.104/awstats/awstats.pl?config=test

Referensi

Install Awstats di CentOS

12 responses to this post.

  1. I am really thankful to the holder of this web
    page who has shared this fantastic post at at this time.

    Reply

  2. I’ve been exploring for a bit for any high quality articles or blog posts in this sort of house
    . Exploring in Yahoo I eventually stumbled upon this web
    site. Reading this information So i’m glad to convey that I’ve a very excellent
    uncanny feeling I found out exactly what I needed. I most undoubtedly will make
    certain to don?t overlook this site and provides it a glance on a constant basis.

    Reply

  3. Excellent post. I used to be checking continuously this blog and
    I’m impressed! Very helpful information particularly the
    remaining part πŸ™‚ I maintain such info a lot. I was
    seeking this certain info for a long time.
    Thank you and good luck.

    Reply

  4. Hello to all, how is all, I think every one is getting more from this site, and your views
    are pleasant for new people.

    Reply

  5. I have learn some good stuff here. Certainly price bookmarking for revisiting.
    I wonder how much effort you set to make this type of wonderful informative site.

    Reply

  6. Thank you a bunch for sharing this with all people you really understand what you’re
    speaking approximately! Bookmarked. Please additionally talk over
    with my web site =). We will have a link change contract among us

    Reply

  7. Appreciating the time and effort you put into your site and detailed
    information you provide. It’s nice to come across a blog every once in a while that isn’t the same
    out of date rehashed material. Fantastic read! I’ve saved your site and I’m
    including your RSS feeds to my Google account.

    Reply

  8. First of all I would like to say superb blog!

    I had a quick question that I’d like to ask if you don’t mind.
    I was curious to know how you center yourself and clear your thoughts prior to writing.
    I have had trouble clearing my thoughts in getting my ideas out.

    I truly do take pleasure in writing however it just seems like the first
    10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any recommendations or tips?
    Appreciate it!

    Reply

  9. Asking questions are in fact good thing if you are not understanding
    anything completely, but this paragraph gives pleasant understanding
    yet.

    Reply

  10. I am truly happy to read this blog posts which includes tons of useful information, thanks for providing these statistics.

    Reply

  11. I’m gone to inform my little brother, that he should also pay
    a visit this web site on regular basis to obtain updated from most
    recent news update.

    Reply

  12. Thanks , I have recently been looking for info approximately
    this subject for a long time and yours is the greatest I have
    came upon so far. However, what concerning the bottom
    line? Are you positive in regards to the source?

    Reply

Leave a comment