instalasi dan konfigurasi mapserver for windows

9
Page 1 | 8 Instalasi dan Konfigurasi MapServer for Windows  A. Instalasi dan Konfigurasi MapServer for Windows 1. Instalasi dan Konfigurasi MapServer di sini menggunakan system operasi Windows XP.  2. Siapkan file master program MapServer for Windows 1.5.5 ( ms4w_1.5.5.zip) Gambar 1. Master program MapServer for Windows 1.5.5 3. Extract file master MapServer for Windows 1.5.5 ( ms4w_1.5.5.zip) sehingga hasilnya seperti Gambar 2. Gambar 2. Hasil ekstrak file ms4w_1.5.5.zip

Upload: x-dimas-carella-teruna

Post on 14-Oct-2015

54 views

Category:

Documents


5 download

DESCRIPTION

map server

TRANSCRIPT

  • P a g e 1 | 8

    Instalasi dan Konfigurasi MapServer for Windows

    A. Instalasi dan Konfigurasi MapServer for Windows 1. Instalasi dan Konfigurasi MapServer di sini menggunakan system operasi

    Windows XP.

    2. Siapkan file master program MapServer for Windows 1.5.5 (ms4w_1.5.5.zip)

    Gambar 1. Master program MapServer for Windows 1.5.5

    3. Extract file master MapServer for Windows 1.5.5 (ms4w_1.5.5.zip) sehingga

    hasilnya seperti Gambar 2.

    Gambar 2. Hasil ekstrak file ms4w_1.5.5.zip

  • P a g e 2 | 8

    4. Pindahkan direktori ms4w hasil ekstrak tadi ke root drive C: atau D:, atau lokasi

    yang lain. Di sini digunakan drive C: seperti Gambar 3.

    Gambar 3. Isi direktori C:\ms4w

    5. Edit file php.ini yang ada di C:\ms4w\Apache\cgi-bin dan uncomment

    (hilangkan tanda ;) pada baris yang berisi perintah untuk meload library PHP GD

    seperti gambar 4.

    Gambar 4. Mengaktifkan Library GD pada PHP

  • P a g e 3 | 8

    6. Setelah itu cari baris perintah yang berfungsi untuk mengaktifkan dukungan

    MapScript seperti gambar 5.

    Gambar 5. Mengaktifkan MapScript di PHP

    7. Atur konfigurasi port Apache, apakah hendak menggunakan nomor port default

    (80) atau nomor port yang lain. Untuk melakukannya edit file konfigurasi

    httpd.conf yang ada di C:\Apache\conf seperti gambar 6.

    Gambar 6. Mengatur Nomor Port Service Apache

  • P a g e 4 | 8

    8. Start / jalankan Apache melalui Control Panel Administrative Tools kemudian

    pilih Services. Klik kanan pada service Apache MS4W Web Server dan pilih

    Start.

    Gambar 7. Menjalankan Service Apache MS4W Web Server

    9. Lakukan pengetesan terhadap service Apache MS4W apakah sudah dapat

    melayani permintaan request dari client atau belum. Ketik pada web browser dan

    masukkan URL http://localhost. Jika Apache berjalan dengan benar, maka akan

    muncul tampilan seperti Gambar 8.

    Gambar 8. Tampilan Web Browser

  • P a g e 5 | 8

    10. Untuk menguji instalasi PHP/MapScript apakah sudah berjalan dengan baik,

    buat file test.php dan simpan di direktori C:\ms4w\Apache\htdocs. Isi dari

    file test.php adalah sebagai berikut:

    11. Jalankan web browser dan panggil URL http://localhost/test.php, akan tampil

    keluaran seperti Gambar 9.

    Gambar 9. Tampilan Versi PHP/Mapscript

  • P a g e 6 | 8

    B. Instalasi MapLab 1. Siapkan file master program MapLab for Windows 2.2 (maplab_ms4w-2.2.zip)

    Gambar 10. Master program MapLab 2.2

    2. Ekstrak file maplab_ms4w-2.2.zip sehingga hasilnya seperti Gambar 11.

    Terdapat 3 direktori hasil ekstrak, yaitu: Apache, apps dan httpd.d

    Gambar 11. Hasil Ekstrak file maplab_ms4w-2.2.zip

    3. Masuk ke direktori httpd.d dan buka file httpd_maplab.conf yang ada di

    dalamnya. Isi file tersebut seperti Gambar 12.

  • P a g e 7 | 8

    Gambar 12. Isi File httpd_maplab.conf

    4. Salin isi file tersebut dan paste di baris paling bawah pada file httpd.conf yang

    ada di C:\ms4w\Apache\conf. Isi dari file httpd.conf menjadi seperti Gambar

    13.

    Gambar 13. Isi File httpd.conf

  • P a g e 8 | 8

    5. Simpan file httpd.conf dan restart service Apache MS4W.

    6. Salin direktori maplab-2.2 ke C:\ms4w\Apache\apps seperti Gambar 14.

    Gambar 14. Direktori maplab-2.2 di apps

    7. Buka web browser dan jalankan MapLab dengan mengetik URL

    http://localhost/maplab/ (jangan lupa diakhiri dengan tanda /). Tampilan program

    Maplab terlihat seperti Gambar 15.

    Gambar 15. Tampilan Program Maplab