Changes between Initial Version and Version 1 of ZooWebSite/ZooKernel/InstallationNew


Ignore:
Timestamp:
Apr 13, 2010, 9:30:31 PM (15 years ago)
Author:
djay
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/ZooKernel/InstallationNew

    v1 v1  
     1= ZOO Kernel Installation =
     2
     3The ZOO installation process requires the following libraries to be installed on your linux/mac system:
     4
     5    * FastCGI ( http://www.fastcgi.com )
     6    * cgic ( http://www.boutell.com/cgic )
     7    * libxml2 ( http://xmlsoft.org )
     8    * cURL ( http://curl.haxx.se )
     9    * OpenSSL ( http://www.openssl.org )
     10    * Python ( http://www.python.org )
     11    * PHP Embedded (optional) ( http://www.php.net )
     12    * Java SDK (optional) ( http://java.sun.com )
     13    * SpiderMonkey (optional) ( http://www.mozilla.org/js/spidermonkey/)
     14
     15= Getting the code from SVN =
     16
     17Please use the following command to get the ZOO Kernel source code :
     18
     19{{{
     20svn checkout http://svn.zoo-project.org/svn/trunk zoo
     21}}}
     22
     23= Compiling ZOO Kernel =
     24
     25Please use the following command to compile ZOO Kernel source code. Please use
     26./configure --help to get more informations about options.
     27
     28{{{
     29cd trunk/zoo-kernel
     30./configure --with-js=/usr/ \
     31                 --with-gdal-config=/usr/bin/gdal-config \
     32                 --with-php=/usr/lib/php5.2.10/ \
     33                 --with-java=/opt/sun-jdk-1.6.0.02/
     34make zoo_loader.cgi
     35}}}
     36
     37= Install ZOO Kernel and ZOO ServiceProvider =
     38
     39Assuming that your Apache server handle cgi-scripts located in /var/www/localhost/cgi-bin, you must copy the zoo_loader.cgi script in this directory as the main.cfg file (see bellow).
     40
     41{{{
     42# Install ZOO Kernel
     43cp main.cfg /var/www/localhost/cgi-bin
     44cp zoo_loader.cgi /var/www/localhost/cgi-bin
     45# Install ZOO ServiceProvider
     46cp ../zoo-services/hello-py/cgi-env/*.zcfg /var/www/localhost/cgi-bin
     47cp ../zoo-services/hello-py/*.py /var/www/localhost/cgi-bin/
     48}}}
     49
     50The main configuration file is named main.cfg and contains configuration parameters that can be accessed from your service (using the main_cfg parameter) or by the ZOO Kernel. Please edit main.cfg according to your environment.
     51Apache ZOO .htaccess
     52
     53Then, create and edit a file called .htaccess in a zoo directory in your Apache DocumentRoot, using the following command:
     54
     55{{{
     56mkdir /var/www/localhost/htdocs/zoo/
     57cat > /var/www/localhost/htdocs/zoo/.htaccess << EOF
     58RewriteEngine on
     59RewriteCond %{REQUEST_FILENAME} !-f
     60RewriteCond %{REQUEST_FILENAME} !-d
     61RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !=%{DOCUMENT_ROOT}/login.php
     62RewriteRule (.*)/(.*)/(.*) /cgi-bin/zoo_loader.cgi?ServiceProvider=$2&metapath=$1 [L,QSA]
     63RewriteRule (.*)/(.*)/ /cgi-bin/zoo_loader.cgi?ServiceProvider=$2&metapath=$1 [L,QSA]
     64RewriteRule (.*)/(.*) /cgi-bin/zoo_loader.cgi?ServiceProvider=$1&metapath= [L,QSA]
     65EOF
     66}}}
     67
     68= Test your ZOO installation =
     69
     70Finally, run the following GetCapabilities, DescribeProcess and Execute requests to test your ZOO Kernel installation :
     71
     72{{{
     73http://my.website/zoo/?Service=WPS&Request=GetCapabilities&Version=1.0.0
     74http://my.website/zoo/?Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy
     75http://my.website/zoo/?Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=My%20Name
     76}}}
     77
     78You are done, congrats ! You can now use the ZOO Services or create your own.

Search

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