การติดตั้ง IIS (Internet Information Server)ดาวโหลดเว็บสำเร็จรูป --->
[You must be registered and logged in to see this link.]IIS web server เป็นโปรแกรมที่ใช้สำหรับทำเว็บเซิรฟ์เวอร์จากค่ายไมโครซอฟต์ ใช้สำหรับทดสอบเขียนภาษาสคริปต์ต่างๆ ที่ต้องการใช้งานแบบออนไลน์
ภาษาที่สามารถทดสอบบน IIS
• ภาษา HTML, ASP สามารถใช้งานได้ทันทีหลังการติดตั้ง
• ภาษา ASP.NET ต้องติดตั้ง .NET Framework ก่อนจึงจะใช้งานได้(ในที่นี้ไม่ต้องใช้แต่ถ้าอยากใช้) สามารถดาวน์โหลดได้ที่
[You must be registered and logged in to see this link.]• ภาษา PHP ต้องติดตั้งตัวแปลภาษา PHP ก่อน(ในที่นี้ไม่ต้องใช้แต่ถ้าอยากใช้) สามารถดาวน์โหลดได้ที่
[You must be registered and logged in to see this link.]• ภาษา PERL ต้องติดตั้งตัวแปลภาษา PERL ก่อน(ในที่นี้ไม่ต้องใช้แต่ถ้าอยากใช้) สามารถดาวน์โหลดได้ที่
[You must be registered and logged in to see this link.]• ภาษา PYTHON ต้องติดตั้งตัวแปลภาษา PYTHON ก่อน (ในที่นี้ไม่ต้องใช้แต่ถ้าอยากใช้) สามารถดาวน์โหลดได้ที่
[You must be registered and logged in to see this link.]เวอร์ชั่นของ IIS
• IIS4 > ใช้งานบน Windows NT
• IIS5 > ใช้งานบน Windows XP Professional
• IIS6 > ใช้งานบน Windows Server 2003
อ้างถึง
Note.
กรณีใช้งานเป็น Windows 98, ME หรือ Windows XP Home Edition จะไม่มี IIS ให้ใช้งานสามารถเลือกใช้เว็บเซิร์ฟเวอร์เป็น PWS (Personal Web Server)
การติดตั้ง IIS
1. คลิกที่ Start > Settings > Control Panel
2. ดับเบิ้ลคลิกที่ Add or Remove Programs
3. คลิกที่ Add/Remove Windows Components
[You must be registered and logged in to see this image.]4. คลิกเลือกที่ Internet Information Services (IIS)
กรณีต้องการดูรายละเอียดเพิ่มเติมให้คลิกเลือกที่ Details...
[You must be registered and logged in to see this image.]5. คลิกปุ่ม Next> เพื่อเริ่มติดตั้ง
6. กรณีระบบถามหาตัวติดตั้ง Windows XP ให้คลิกปุ่ม OK แล้วทำการ Browse หาแผ่น CD ติดตั้ง Windows XP ห้อง i386 บางครั้งวินโดว์จะสามารถทำขั้นตอนนี้ได้เอง
[You must be registered and logged in to see this image.]7. คลิกปุ่ม Open, OK
8.ระบบบจะทำการติดตั้ง IIS ดังรูป
[You must be registered and logged in to see this image.]9. คลิกปุ่ม Finish
[You must be registered and logged in to see this image.]เท่านี้เครืองของเราก็สามารถที่จะทำตัวเป็นเว็บเซิฟเวอร์ได้แล้วนะครับ โดยมันสามารถเปิด ASP ,HTML ได้แล้ว แต่ยังคงต้องมีการปรับแต่งปรับตั้งต่าง ๆเพิ่มเติมอีกตามความต้องการของเราด้วย
การปรับแต่ง IIS1. ทำการคลิกขวาที่ไอคอน My Computer > Manage
[You must be registered and logged in to see this image.]2. คลิกที่ Services and Applications > Internet Information Services > Web Sites > Default Web Site
[You must be registered and logged in to see this image.]3. เริ่มปรับแต่งโดยการคลิกขวาที่ Default Web Site > Properties
4. แท็บ Web Site
• Description : ระบุชื่อเว็บไซต์ที่ต้องการเช่น
[You must be registered and logged in to see this link.]• IP Address : เลือก IP Address ที่ต้องการใช้เรียกเว็บไซต์ (หากต้องการให้เรียกได้ทุก IP ก็เลือกเป็น All Unassigned)
• TCP Port : พอร์ตในการเรียกใช้เว็บไซต์ เลือกเป็น 80
กรณีใช้ port 80 การเรียกเว็บไซต์ไม่จำเป็นต้องอ้างอิงพอร์ต เช่น
[You must be registered and logged in to see this link.] (เบื้องหลังเป็น
[You must be registered and logged in to see this link.])
กรณีต้องการเปลี่ยนพอร์ตอาทิ เปลี่ยนเป็นพอร์ต 81 ตอนเรียกเว็บก็เรียกเป็น
[You must be registered and logged in to see this link.] [You must be registered and logged in to see this image.]5. แท็บ Home Directory
Local Path : พาทที่ต้องการเก็บเว็บไซต์ ปกติจะเป็น
Inetpub\wwwroot
[ ] script source access : ต้องการให้มองเห็นสคริปต์ไฟล์
[ / ] Read : อ่านไฟล์ได้
[ ] Write : เขียนทับไฟล์ได้
[ ] Directory browsing : ต้องการให้สามารถมองเห็นข้อมูลในไดเร็กทอรีได้
[ / ] Log visits : มีการเก็บล็อกไฟล์ไว้
[ / ] Index this resource : มีการเรียกหาไฟล์ index
[You must be registered and logged in to see this image.]
กรณีต้องการตรวสอบภาษาที่สามารถใช้งานได้ ก็คลิกดูที่ ปุ่ม Configuration...
[You must be registered and logged in to see this image.]
6. แท็บ Document
เพิ่มไฟล์ Home Page หรือไฟล์หน้าแรกที่ต้องการเรียกใช้งาน โดยการคลิกที่ปุ่ม Add
index.html > ภาษา HTML
index.shtml > ภาษา SHTML
index.asp > ภาษา ASP
index.aspx > ภาษา ASP.NET
index.php > ภาษา PHP
index.cgi > ภาษา PERL
index.py > ภาษา Python
แนะนำ
ในการใช้งานจริงๆ ให้เพิ่มเฉพาะภาษาที่เราใช้งานในระบบเท่านั้น
เช่น กรณีใช้ภาษา ASP ก็ให้เพิ่ม index.html, index.asp
กรณีใช้ภาษา PHP ก็ให้เพิ่ม index.html, index.php
ก่อน
[You must be registered and logged in to see this image.]
หลัง
[You must be registered and logged in to see this image.]
7. เมื่อปรับทุกส่วนเสร็จแล้วให้คลิกที่ปุ่ม OK
8. ทำการ Stop และ Start IIS 1 รอบ
[You must be registered and logged in to see this image.]
9. เสร็จสิ้นการปรับแต่ง IIS