Project

General

Profile

Installation of ADAGUC WMSWCS Server » History » Version 2

Maarten Plieger, 10/29/2013 09:01 AM

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