Authors: | Nicolas Bozon, Gérald Fenoy, Jeff McKenna, Luca Delucchi |
---|---|
Last Updated: | $Date: 2013-06-21 18:55:49 +0200 (Fri, 21 Jun 2013) $ |
Table of Contents
Note
An Ubuntu 10.4 with ZOO virtual image is available at http://www.zoo-project.org/Ubuntu10.4_ZOO.zip (root: ZOO.test)
sudo apt-get install flex bison libfcgi-dev libxml2 libxml2-dev curl openssl autoconf apache2 python-software-properties subversion libmozjs185-dev python-dev build-essential
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install libgdal1-dev
apt-get install flex bison libfcgi-dev libxml2 libxml2-dev curl openssl autoconf apache2 python-software-properties subversion python-dev libgdal1-dev build-essential libmozjs185-dev
Note
In the following lines you will find as administrator user note, on Ubuntu you have to add sudo at the beginning of line, on Debian you can use su -c COMMAND)
svn checkout http://svn.zoo-project.org/svn/trunk zoo-project
cd zoo-project/thirds/cgic206/
make
cd ../../zoo-project/zoo-kernel/
autoconf
./configure --with-js --with-python
Note
For PHP, you must make sure to compile PHP with –enable-embed.
Note
To use MapServer add the option --with-mapserver=/path/to/mapserver/source
make
cp main.cfg /usr/lib/cgi-bin
cp zoo_loader.cgi /usr/lib/cgi-bin
cp ../zoo-services/hello-py/cgi-env/*.zcfg /usr/lib/cgi-bin
cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/
nano /usr/lib/cgi-bin/main.cfg
- serverAddress = http://127.0.0.1
Note
If you have some problem in the execute request using Python service, add the following to main.cfg:
[env]
PYTHONPATH=<YOUR_PYTHONPATH>
nano /usr/lib/cgi-bin/main.cfg
- serverAddress = http://localhost/zoo
mkdir /var/www/zoo
<Directory /var/www/zoo/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
RewriteEngine on
RewriteRule call/(.*)/(.*) /cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=$1&DataInputs=sid=$2&RawDataOutput=Result [L,QSA]
RewriteRule (.*)/(.*) /cgi-bin/zoo_loader.cgi?metapath=$1 [L,QSA]
RewriteRule (.*) /cgi-bin/zoo_loader.cgi [L,QSA]
cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
a2enmod rewrite
apt-get install git libfreetype6-dev libproj-dev libkml-dev libcairo-dev libxml2-dev libgd2-xpm-dev libxslt1-dev
git clone https://github.com/mapserver/mapserver.git
cd mapserver
git checkout branch-6-2
git pull
./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --with-tiff --with-jpeg --with-gd --with-wcs --with-sos --with-xml2-config --with-wfs --with-fastcgi --with-proj --with-cairo --with-kml=yes --with-xslt --with-threads --with-geos
make
make install
nano /etc/ld.so.conf.d/mapserver.conf
- /usr/local/lib/
ldconfig