18
web analyze r 1

web analyzer

Embed Size (px)

DESCRIPTION

web analyzer. ขั้นตอนการติดตั้ง ขั้นตอนแรก ทำการเข้าไปที่ root ด้วยคำสั่ง sudo su แล้วก็ทำการ update ด้วยคำสั่ง apt-get update ขั้นตอนต่อไปคือการติดตั้ง apache2 ด้วยคำ สั้ง apt-get install apache2 เมื่อลงเสร็จจะได้ดังภาพ. ดังนั้นใช้คำสั่ง aptitude -y install awstats - PowerPoint PPT Presentation

Citation preview

Page 1: web analyzer

web analyzer

1

Page 2: web analyzer

ขั้��นตอนการตดต��ง ขั้��นตอนแรก ทำ�าการเขั้�าไปทำ�� root ด�วยคำ�าสั่��ง sudo su แล้�วก�

ทำ�าการupdate ด�วยคำ�าสั่��ง apt-get updateขั้��นตอนต�อไปคำ�อการตดต��ง apache2 ด�วยคำ�าสั่��ง apt-get install apache2 เมื่��อล้งเสั่ร�จจะได�ด�งภาพ

2

Page 3: web analyzer

3

ด�งน��นใช้�คำ�าสั่��ง aptitude -y install awstatsจากน��นทำ�าการตดต��ง aptitude ด�วยคำ�าสั่��ง apt-get install aptitude เมื่��อตดต��งเสั่ร�จแล้�วจะได�ด�งภาพ

Page 4: web analyzer

4

หล้�งจากน��นก�ทำ�าการตดต��ง awstats ด�วยคำ�าสั่��ง aptitude -y install awstats เมื่��อล้ง เสั่ร�จจะได�ด�งภาพ

Page 5: web analyzer

5

แล้�วก�ทำ�าการเขั้�าไปแก�ไขั้ไฟล้( awstats.conf โดย ใช้�คำ�าสั่��ง pico /etc/awstats/awstats.confเมื่��อเขั้�าไปแล้�วจะขั้*�นหน�าน��

Page 6: web analyzer

6

จากน��นไปทำ�� บรรทำ�ดทำ�� 122 เพ��อต��ง logfomat = 1

Page 7: web analyzer

7

จากน��นให�ไปบรรทำ�ดทำ�� 153 เพ��อ ระบ, host name ทำ��จะทำ�าการตรวจสั่อบในทำ��น��ระบ,เป-น www.google.com

Page 8: web analyzer

8

จากน��นให�ไปบรรทำ�ดทำ�� 168 เพ��อทำ�าการ set ip ในทำ��น�� ทำ�าการ set ip จาก ต�วเคำร��อง โดยทำ�าการ check ด�วย คำ�าสั่��ง ifconfigSet ด�วยคำ�าสั่��งน�� HostAliases= "localhost 192.168.61.139 REGEX[server\.world$] REGEX[^10\.0\.0\.]"เมื่��อ set แล้�วจะได�ด�งภาพ

Page 9: web analyzer

9

จากน��นไปทำ��บรรทำ�ด 222 เพ��อทำ�าการต��งคำ�า Dirlcons=”./icon”จะได�ด�งภาพ

แล้�วก�ทำ�าการ save file แล้�วก�ไปสั่ร�าง ไดเร�คำคำอร�� ทำ�� var/www/awstats ด�วย

คำ�าสั่��งMkdir var/www/awstats จากน��นทำ�าการล้�งด�วยคำ�าสั่��ง

Ln -s /usr/share/awstats/icon/var/www/awstats/icon

Page 10: web analyzer

10

จากน��นทำ�าการเขั้�าไปแก�ไขั้ไฟล้( default ด�วยคำ�าสั่��ง Pico /etc/apache2/sites-available/defaultแก�ตรง สั่�วนน��<Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from 192.168.61.139/24 //แก�ตรงน��ให�เป-น ip ขั้องเคำร��องเรา </Directory>แล้�วก�เพ�มื่ สั่�วนน�� ขั้*�นมื่าไว�ล้�างสั่,ด<Location /awstats>Order deny,allowDeny from allAllow from 192.168.61.139/24 // ip ขั้อง เคำร��องเรา </Location></VirtualHost>

Page 11: web analyzer

11

จะได�ด�งภาพ

Page 12: web analyzer

12

Page 13: web analyzer

13

หล้�งจากน��นก� save file

จากน��นทำ�าการ restats apache2 ด�วนคำ�าสั่��งservice apache2 restartรอแปปน*ง แล้�วก�ใช้�คำ�าสั่��ง /usr/lib/cgi-bin/awstats.pl -config=apache -updateเพ��อสั่ร�างรายงาน

แล้�วก�ใช้�คำ�าสั่��ง/usr/lib/cgi-bin/awstats.pl -config=apache -output -staticlink > /var/www/awstats/index.htmlสั่ร�างรายงาน HTML จากรายงานด�งกล้�าวขั้�างต�น

จากน��นทำ�าการเขั้�าไปทำ�� firefox แล้�วเขั้�าไปกรอกทำ��ช้�อง โดยใช้� เล้ขั้ip ทำ��เราได�กรอก ในทำ��น��ใช้�192.168.61.139/awstats

Page 14: web analyzer

ต�วอย�างโปรแกรมื่

14

Page 15: web analyzer

15

ต�วอย�างโปรแกรมื่

Page 16: web analyzer

16

ต�วอย�างโปรแกรมื่

Page 17: web analyzer

17

ต�วอย�างโปรแกรมื่

Page 18: web analyzer

ขั้อบคำ,ณคำร�บ

18