Powered By Blogger
Showing posts with label log. Show all posts
Showing posts with label log. Show all posts

15 January 2011

ติดตั้ง AWStats

ค้นหาจาก  Google ได้ดังนี้ครับ

มันทำงานกับ Perl นะครับ

บน OpenBSD
http://puffer.sru.ac.th/OpenBSD/awstats

บน FreeBSD
http://www.thaiadmin.org/board/index.php?topic=94334.0
http://jakyjoon.blogspot.com/2008/12/awstats-log.html
เก่าหน่อย -> http://www.bandhit.com/webboard/viewtopic.php?t=50
FreeBSD (FTP,PDF ) --> http://www.uboninfo.net/board/index.php?topic=2890.0


บน Windows ( Apache WebServer ด้วย  AppServe Setup Packeage )
http://thichaiit.mobile.spaces.live.com/entry.aspx?h=cns!76FBB38BF33ED972!307&fp=/arc.aspx

บน Windows ( บน IIS Webserver )
http://www.joezine.com/node/1050/install-awstats-on-iis7

CentOS

    แนะนำลิงค์ที่เขียนว่า Prefer
    แต่ที่ต้องทำเพิ่มคือ การกำหนด config file ดังนี้ั
    ตัวอย่างนี้จะทำเพื่อดูที่ http://localhost/awstats/awstats.pl     คือรันจากเครื่อง localhost ดูได้เท่านั้น

cp /etc/awstats/awstats.model.conf /etc/awstats/awstats.localhost.conf

ตัวอย่างแก้ไขแฟ้ม/etc/awstats/awstats.localhost.conf
ให้เหมาะกับ apache ดังนี้คือ

LogFile="/var/log/httpd/access_log"
LogType=W
LogFormat=1
SiteDomain="localhost"
HostAliases="localhost 127.0.0.1"
DirData="/var/lib/awstats"
DirCgi="/awstats"
DirIcons="/awstatsicons"
อาจแก้ไขโดยใช้
#gedit  ชื่อfile
#gedit  /etc/awstats/awstats.localhost.conf

สั่งสร้างฐานข้อมูลสถิติด้วย
perl /var/www/awstats/awstats.pl - config=localhost -update

กับสร้าง รายงาน static ด้วย

perl /var/www/awstats/awstats.pl - config=localhost -output - staticlinks >/var/www/html/awstats.myhttp.html


แล้ว restart apache (httpd) ใหม่

หมายเหตุ : ถ้า host เป็น IP อาจต้องสร้าง file เช่น /etc/awstats/awstats.192.168.1.35.conf กรณีที่ Host เป็น 192.168.1.35

บน Ubuntu


Fedora




แถมติดตั้ง FTP
http://puffer.sru.ac.th/OpenBSD/vsftpd