web analyzer

Post on 02-Jan-2016

38 Views

Category:

Documents

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

web analyzer

1

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

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

2

3

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

4

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

5

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

6

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

7

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

8

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

9

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

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

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

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

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>

11

จะได�ด�งภาพ

12

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

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

14

15

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

16

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

17

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

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

18

top related