Skip to content
Browse files

Added docs on setting up the wcs test server

  • Loading branch information
timlinux committed Jul 19, 2012
1 parent 408d266 commit 78bbb659dd51394abf1a5a9665177566482ca7bd
Showing with 120 additions and 0 deletions.
  1. +3 −0 doc/INSTALL.t2t
  2. +3 −0 doc/iauthors.t2t
  3. +114 −0 doc/wcs-test-server.t2t
@@ -112,4 +112,7 @@ source directory.

%!include: osx.t2t

%!include: wcs-test-server.t2t

%!include: iauthors.t2t
@@ -27,5 +27,8 @@ The following people have contributed to this document:
- Tim Sutton 2006
- Debian package section: Juergen Fischer 2008

- WCS Test Server Section
- Tim Sutton, Radim Blazek 2012

- Latex Generator
- Tim Sutton 2011
@@ -0,0 +1,114 @@

= Setting up the WCS test server on GNU/Linux =

**Requires:** Ubuntu / Debian derived distro

These notes are for Ubuntu - other versions and Debian derived distros may
require slight variations in package names.

== Preparation ==

Note the git repo below will change to the default QGIS repo once this work
is integrated into master.

git remote add blazek git://
git fetch blazek
git branch --track wcs2 blazek/wcs2
git checkout wcs2
cd /var/www/
sudo mkdir wcs
sudo chown timlinux wcs
cd wcs/
mkdir cgi-bin
cd cgi-bin/

== Setup mapserver ==

```sudo apt-get install cgi-mapserver```

Set the contents of cgi-bin/wcstest-1.9.0 to:

#! /bin/sh

Then do:

chmod +x cgi-bin/wcstest-1.9.0
mkdir -p /var/www/wcs/testdata/qgis-1.9.0/raster/
cd /var/www/wcs/testdata/qgis-1.9.0/raster/
cp -r /home/timlinux/Quantum-GIS/tests/testdata/raster/* .

Edit and set the shapepath to this:

SHAPEPATH "/var/www/wcs/testdata/qgis-1.9.0/raster"

Then create /var/www/wcs/ setting the contents to this:

<VirtualHost *:80>

LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\"" combined
CustomLog /var/log/apache2/ combined
ErrorLog /var/log/apache2/

DocumentRoot /var/www/wcs/html

ScriptAlias /cgi-bin/ /var/www/wcs/cgi-bin/
<Directory "/var/www/wcs/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

RewriteEngine on
RewriteRule /1.9.0/wcs /cgi-bin/wcstest-1.9.0 [PT]


== Create a home page ==

mkdir html
vim html/index.html

Set the contents to:

This is the test platform for QGIS' wcs client. You can use these services
from QGIS directly (to try out WCS for example) by pointing your QGIS to:

== Now deploy it ==

sudo mkdir /var/log/apache2/
sudo chown www-data /var/log/apache2/
cd /etc/apache2/sites-available/
sudo ln -s /var/www/wcs/ .
cd /var/www/wcs/
sudo a2ensite
sudo /etc/init.d/apache2 reload

== Debugging ==

sudo tail -f /var/log/apache2/

0 comments on commit 78bbb65

Please sign in to comment.
You can’t perform that action at this time.