Instalasi Mapserver di IIS 6
Ceritanya lagi ngutak ngatik mapserver nih biar bisa jalan di IIS 6 Windows 2003 server, setelah berhasil, ternyata banyak sekali setinggan nya, daripada lupa di blog in aja sekalian deh.
php.ini
- session.save_path ( tmp directory)
- extension_dir (relative path to your php/extensions directory)
- cgi.force_redirect = 0
- enable the pg_sql extension (php_pgsql.dll)
- doc_root = “ “
- cgi.redirect_status_env = ENV_VAR_NAME
- error_reporting = E_ALL & ~E_NOTICE
- periksa path direktori, apakah udah sesuai
Internet Service Manager
Home Directory Tab
- Local Path = c:\ms4w\Apache\htdocs
- Set Permissions = Read
- Execute Permissions = Scripts only
- Tombol Configuration … = Pada tab Mappings, add Extensions.php dan .phtml dengan Executable arahkan ke c:\ms4w\Apache\cgi-bin\php-cgi.exe, pilih All verbs, Script enginedan Verify that file exist.
Documents Tab
- Tambahkan index.phtml dan index.php
Directory Security Tab
- Anonymous access dan authentication control
- Pilih Anonymous access dan edit menjadi IUSR_account
Virtual Directory
- cgi-bin > c:\ms4w\apache\cgi-bin ~ Read ~ Scripts and executables
- ms_tmp > c:\ms4w\tmp\ms_tmp ~ Read, Write ~ Scripts only (Memakai windows explorer set Permissions untuk Internet Guest Account ~ Read an execute, Read, Write, List Folder Contents)
- tmp > c:\ms4w\tmp ~ Read, Write ~ Scripts only (Memakai windows explorer set Permissions untuk Internet Guest Account ~ Read an execute, Read, Write, List Folder Contents)
- phppgadmin (kalau mau memakai postgresql/postgis) > arahkan ke phpPgAdmin ~ Read, Write ~ Scripts and executables. Tambahkan security.
Web Service Extension
- Tambahkan file php-cgi.exe dan di set Allow
Environment Variables
System variables
- PHPRC > c:\ms4w\Apache\cgi-bin
- Tambahkan di PATH > c:\ms4w\Apache\cgi-bin
- PROJ_LIB > c:/ms4w/proj/nad
- GDAL_DATA > c:\ms4w\gdaldata
- GDAL_DRIVER_PATH > c:\ms4w\gdalplugins