Project

General

Profile

Installation of ADAGUC WMSWCS Server » History » Version 1

Maarten Plieger, 10/29/2013 08:56 AM

1 1 Maarten Plieger
h1. Installation of ADAGUC WMS/WCS Server
2 1 Maarten Plieger
3 1 Maarten Plieger
The ADAGUC server is runned by the climate4impact code, a traditional CGI script and apache server are not required. As long as the source code is compiled correctly and the configuration file is configured correctly, the ADAGUC WMS will work as it should.
4 1 Maarten Plieger
5 1 Maarten Plieger
There are three steps involved:
6 1 Maarten Plieger
# Setup postgresql database
7 1 Maarten Plieger
# Compile binaries
8 1 Maarten Plieger
# And create a ADAGUCServer configuration file which can be read by climate4impact.
9 1 Maarten Plieger
10 1 Maarten Plieger
Setup postgres for adaguc:
11 1 Maarten Plieger
<pre>
12 1 Maarten Plieger
sudo -u postgres createuser --superuser adaguc
13 1 Maarten Plieger
sudo -u postgres psql postgres
14 1 Maarten Plieger
\password adaguc # type adaguc as password, when finished press \q to exit.
15 1 Maarten Plieger
16 1 Maarten Plieger
createdb adagucdemo -U adaguc -W -h localhost
17 1 Maarten Plieger
createdb impactportalwms -U adaguc -h localhost
18 1 Maarten Plieger
</pre>
19 1 Maarten Plieger
20 1 Maarten Plieger
Compile adaguc
21 1 Maarten Plieger
<pre>
22 1 Maarten Plieger
cd /data/software
23 1 Maarten Plieger
hg clone http://dev.knmi.nl/hg/adagucserver
24 1 Maarten Plieger
cd adagucserver/
25 1 Maarten Plieger
bash compile.sh
26 1 Maarten Plieger
</pre>
27 1 Maarten Plieger
28 1 Maarten Plieger
Configure adaguc
29 1 Maarten Plieger
<pre>
30 1 Maarten Plieger
cp /data/impactdev/impactportaltemplates/adagucserver/adagucserver.xml /home/c4m/impactportal/adagucserver.xml
31 1 Maarten Plieger
32 1 Maarten Plieger
#Adjust the following items in the configuration of the adagucserver, /home/c4m/impactportal/adagucserver.xml:
33 1 Maarten Plieger
# Configuration->  <Path value="/data/software/adagucserver/data/"/>
34 1 Maarten Plieger
# Configuration->  <OnlineResource value="http://localhost:8080/impactportal/ImpactService?"/>
35 1 Maarten Plieger
# Configuration->  <DataBase parameters="dbname=impactportalwms user=adaguc host=localhost password=adaguc"/>
36 1 Maarten Plieger
# Replace %softwarepath% by /data/software
37 1 Maarten Plieger
</pre>