ZooKernel Installation Guide

On this page you will find informations about how to compile and use ZOO Kernel with your Apache web server.


To be able to compile the current ZOO Kernel, you need to have some libraries allready availlable on your system :

Getting the source code

To get the source code and compile on your platform, use the following command :

cd zoo/
svn checkout svn+ssh://dev.cartography.st/mnt/data3/zoo-project/trunk/ trunk

Now you get your local copy of the official ZOO svn server.



ZOO Kernel use Autotools, to compile the ZOO Kernel just use the following command (please use ./configure --help to get more informations about options) :

cd trunk/zoo-kernel
./configure --with-js=/usr/ --with-gdal-config=/usr/bin/gdal-config --with-php=/usr/lib/php5.2.10/ --with-java=no
make zoo_loader.cgi


ZOO Kernel can be compiled on WIN32 platforms using Microsoft Visual C++ Express Edition 2008 this way (please note that you should probably edit the makefile.vc file to suit your needs) :

cd trunk/zoo-kernel
nmake /f makefile.vc zoo_loader.cgi

Install ZOO Kernel and ZOO ServiceProvider?

Suppose that your Apache server handle cgi-scripts located in /var/www/localhost/cgi-bin. You should copy the zoo_loader.cgi script in this directory as the main.cfg file (see bellow).

# Install your ZOO Kernel
cp main.cfg /var/www/localhost/cgi-bin
cp zoo_loader.cgi /var/www/localhost/cgi-bin
# Install your ZOO ServiceProvider :
cp ../zoo-services/hello-py/cgi-env/*.zcfg /var/www/localhost/cgi-bin
cp ../zoo-services/hello-py/*.py /var/www/localhost/cgi-bin/

The main configuration file, main.cfg, contains configuration parameters (in the main section) which can be accessed from your service (using the main_cfg parameter) or by the ZOO Kernel (for instance, we set that env is for the automaticaly setting of environement variable), and metadata.

You should edit the main configuration file before running yoru first request to your ZOO Kernel.

Apache ZOO .htaccess

From your Apache DocumentRoot, create and fill a file called .htaccess in a zoo directory, using the following command.

mkdir /var/www/localhost/htdocs/zoo/
cat > /var/www/localhost/htdocs/zoo/.htaccess << EOF
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*)/(.*)/(.*) /cgi-bin/zoo_loader.cgi?ServiceProvider=$2&metapath=$1 [L,QSA]
  RewriteRule (.*)/(.*)/ /cgi-bin/zoo_loader.cgi?ServiceProvider=$2&metapath=$1 [L,QSA]
  RewriteRule (.*)/(.*) /cgi-bin/zoo_loader.cgi?ServiceProvider=$1&metapath= [L,QSA]


Run first requests to your ZOO Kernel installation :


You are ready to go now, developing your own services following the ZOODeveloperGuide.


Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png