1 / 18

web analyzer

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

berk-hoover
Télécharger la présentation

web analyzer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. web analyzer

  2. ขั้นตอนการติดตั้ง ขั้นตอนแรก ทำการเข้าไปที่ root ด้วยคำสั่ง sudosuแล้วก็ทำการupdate ด้วยคำสั่ง apt-get update ขั้นตอนต่อไปคือการติดตั้ง apache2 ด้วยคำสั้งapt-get install apache2 เมื่อลงเสร็จจะได้ดังภาพ

  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= "localhost192.168.61.139 REGEX[server\.world$] REGEX[^10\.0\.0\.]" เมื่อ set แล้วจะได้ดังภาพ

  9. จากนั้นไปที่บรรทัด 222 เพื่อทำการตั้งค่าDirlcons=”./icon” จะได้ดังภาพ แล้วก็ทำการ save file แล้วก็ไปสร้าง ไดเร็คคอรี่ ที่ var/www/awstatsด้วยคำสั่ง Mkdirvar/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,allow Deny from all Allow from 192.168.61.139/24 // ip ของ เครื่องเรา </Location> </VirtualHost>

  11. จะได้ดังภาพ

  12. หลังจากนั้นก็ 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

  13. ตัวอย่างโปรแกรม

  14. ตัวอย่างโปรแกรม

  15. ตัวอย่างโปรแกรม

  16. ตัวอย่างโปรแกรม

  17. ขอบคุณครับ

More Related