Pertemuan V WEB Server
Pertemuan V WEB Server
WEB Server
Sasaran
• Dalam pelajaran ini, Anda akan belajar :
- Untuk memahami fungsi server Web.
- Untuk memperkenalkan Web server Apache.
- Untuk mempelajari cara untuk meminta
dokumen dari server web.
2
Pengenalan
• web server
- Merespon permintaan klien dengan
menyediakan sumber daya
• URI (Uniform Resource Identifier)
• Web server dan berkomunikasi dengan
klien platform-independen Hypertext
Transfer Protocol (HTTP)
3
Pengenalan lanjutan
IIS 5.0 IIS 6.0 Apache Web server
Company Microsoft Microsoft Apache Software
Corporation Corporation Foundation
Version 5.0 6.0 2.0.47
Released 2/17/00 3/28/03 7/10/03
Platforms Windows 2000, Windows Server 2003 Windows NT/2000/XP,
Windows XP Mac OS X, Linux and
other UNIX-based
platforms,
experimentally supports
Windows 95/98
Brief The most popular The newest release of Currently the most
description Web server for IIS from Microsoft. popular Web server.
Windows 2000.
Price Included with Included with Freeware.
Windows 2000 Windows Server 2003
and Windows
XP.
Fig. 21.1 Web servers discussed in this chapter.
4
Bagaimana server WWW bekerja
5
Domain Name Server System
7
HTTP response from a Web server
HTTP version Status code Reason
</body>
</html>
9
System Architecture
• Multi-tier application (n-tier application)
– Information tier (data or bottom tier)
• Menjaga data untuk aplikasi
• Menyimpan data dalam sistem manajemen database
relasional (RDBMS)
– Middle tier
• Menerapkan logika bisnis dan logika presentasi
• Kontrol interaksi antara klien aplikasi dan data aplikasi
– Client tier (top tier)
• Aplikasi user interface
• Pengguna berinteraksi langsung dengan aplikasi melalui
tingkat client
10
N-tier Client-Server Architecture
14
Web server architecture
• LAMP: Paling popular dan open source
– Linux for operating system
– Apache for web server
– MySQL for database
– PHP for server-side scripting
• Others:
– WAMP: Uses Windows for operating system, with
Apache, MySQL, and PHP
– WISA: Full Microsoft package
• Windows
• Internet Information Server (IIS)
• SQL Server (enterprise) or Access (small-scale)
• ASP or ASP.NET
15
Apache Web Server
• Saat ini server web yang paling populer
• Stabilitas
• Efisiensi
• Portabilitas
• Open-source
16
All-in-one Apache/MySQL/PHP
packages
• EasyPHP (recommended)
– Termasuk PHPMyAdmin untuk mengelola
database MySQL
– Instalasi dan konfigurasi
• AbriaSoft Merlin Desktop Edition
– Includes PHPMyAdmin
• WAMP Server
• PHP Triad
17
Installing EasyPHP
• Download EasyPHP, dan ikuti petunjuk instalasi
• Selain itu, memindahkan <mysql> dan folder
<phpmyadmin> ke folder <www> dalam folder instalasi
EasyPHP
• Untuk Windows 95, membuat penyesuaian berikut
sebelum memulai EasyPHP :
– Download patch Windows NT, mengganti nama ke
EasyPHP.exe, dan mengganti EasyPHP.exe ada
– Buka DOS prompt, pergi ke folder instalasi EasyPHP, dan
menjalankan <easyphp /install>
• alankan EasyPHP di Windows, dan akan mulai Apache
dan MySQL (PHP dan PHPMyAdmin tidak perlu "mulai")
– Perhatikan bahwa Windows 95 mungkin menunjukkan bahwa
Apache tidak bekerja, meskipun sebenarnya bekerja
18
Requesting XHTML or PHP documents
20