Sie sind auf Seite 1von 2

Instalasi Cartoweb 3.

5
======================
1. Download sourcecodenya di http://cartoweb.org/downloads.html kemudian ekstrac
t aplikasi, misal di C:\ms4w\apps\ (C:\ms4w\apps\cartoweb3)
2. Buat alias untuk manjalankan cartoweb3 (diarahkan pada direktori tempat file
client.php berada), misalkan sebagai berikut :
Alias /cartoweb3 "/ms4w/apps/cartoweb3/htdocs/"
<Directory "/ms4w/apps/cartoweb3/htdocs/">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
3. Optional : If you are using the demo, you need to have Gettext support instal
led, You can get a version of Gettext for Windows
there http://gnuwin32.sourceforge.net/packages/gettext.htm. Also set the
path to the Gettext binary in your PATH environment variable.
" C:\Program Files\GnuWin32\bin;" (tanpa tanda kutip). The example above
is true if the Gettext binaries are installed in C:\Program
Files\GnuWin32\bin. This is needed by the po2mo.php script to merge and
compile the languages translation files.
4. Install cartoweb dengan mode dos
a. Buka cmd dari menu run, kemudian ketik :
C:\>cd C:\ms4w\apps\cartoweb3
C:\ms4w\apps\cartoweb3>php -n cw3setup.php --install --base-url http://l
ocalhost/cartoweb3 --profile production
installing
Removing htdocs/info.php
Creating directories
Setting permissions
Copying .ini.dist files into .ini (if not existing)
Copying/linking resources into htdocs
Copied <files>.in into <files> for projects: all
Launching makemaps script for projects: all
Launching po2mo script for projects: all
Installation finished...
b. Restart webserver (apache) dgn klik dua kali file C:\ms4w\apache-restart.bat
c. Jika ingin menjalankan aplikasi demo, maka harus download data terlebih dahul
u dari
http://www.cartoweb.org/downloads/cw3.5/cartoweb-demodata-3.5.0.tar.gz
Setelah selesai di download maka ekstract data di C:\ms4w\apps\cartoweb3
setelah install data dengan perintah :
C:\ms4w\apps\cartoweb3>php -n cw3setup.php --install-demo-data
the demoPlugins project uses plugins that work with databases. Consequen
tly some databases settings and configuration are required.
We describe here how to install these databases and how to use cw3setup.
php.
- buat database postgis, dengan nama "demo_plugins"
- isi database dengan data yang tersedia, caranya :
C:\Program Files\PostgreSQL\8.3\bin>shp2pgsql -I C:\ms4w\apps\ca
rtoweb3\projects\demoCW3\server_conf\demoCW3\data\aerofacp.shp airport > airport
.sql
C:\Program Files\PostgreSQL\8.3\bin>psql -d demo_plugins -f airp
ort.sql
C:\Program Files\PostgreSQL\8.3\bin>shp2pgsql -I C:\ms4w\apps\ca
rtoweb3\projects\demoCW3\server_conf\demoCW3\data\builtupa.shp agglo > agglo.sql
C:\Program Files\PostgreSQL\8.3\bin>psql -d demo_plugins -f aggl
o.sql
C:\Program Files\PostgreSQL\8.3\bin>shp2pgsql -I C:\ms4w\apps\ca
rtoweb3\projects\demoCW3\server_conf\demoCW3\data\polbnda.shp district > distric
t.sql
C:\Program Files\PostgreSQL\8.3\bin>psql -d demo_plugins -f dist
rict.sql
C:\Program Files\PostgreSQL\8.3\bin>shp2pgsql -I C:\ms4w\apps\ca
rtoweb3\projects\demoCW3\server_conf\demoCW3\data\mispopp.shp town > town.sql
C:\Program Files\PostgreSQL\8.3\bin>psql -d demo_plugins -f town
.sql
d. Install demo plugins (cw3setup.php Options)
Edit file cartoweb3/projects/demoPlugins/demo.properties dan sesuaikan D
B_HOST,DB_LOCATE_NAME, DB_USER, DB_PASSWD and DB_PORT. Kemudian install demo dgn
perintah sebagai berikut :
C:\ms4w\apps\cartoweb3>php -n cw3setup.php --install --project demoPlugi
ns --config-from-file projects/demoPlugins/demo.properties --base-url http://loc
alhost/cartoweb3 --profile production
installing
Creating directories
Setting permissions
Copying .ini.dist files into .ini (if not existing)
Copying/linking resources into htdocs
Copied <files>.in into <files> for projects: demoPlugins
Launching makemaps script for projects: demoPlugins
Launching po2mo script for projects: demoPlugins
Installation finished...
5. Buka aplikasi cartoweb dengna url --> http://localhost/cartoweb3
6. Selesai

Das könnte Ihnen auch gefallen