[659] | 1 | |
---|
| 2 | |
---|
| 3 | <!DOCTYPE html> |
---|
| 4 | <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
---|
| 5 | <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
---|
| 6 | <head> |
---|
| 7 | <meta charset="utf-8"> |
---|
| 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
---|
| 9 | |
---|
| 10 | <title>Debian / Ubuntu — ZOO-Project 1.4a0 documentation</title> |
---|
| 11 | |
---|
| 12 | <link href="http://fonts.googleapis.com/css?family=Days+One" rel="stylesheet" type="text/css"> |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | <link rel="search" type="application/opensearchdescription+xml" title="Search within ZOO-Project 1.4a0 documentation" href="../_static/opensearch.xml"/> |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | <link rel="top" title="ZOO-Project 1.4a0 documentation" href="../index.html"/> |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | <script src="_static/js/modernizr.min.js"></script> |
---|
| 38 | |
---|
| 39 | </head> |
---|
| 40 | |
---|
| 41 | <body class="wy-body-for-nav" role="document"> |
---|
| 42 | |
---|
| 43 | <div class="wy-grid-for-nav"> |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
---|
| 47 | <div class="wy-side-nav-search"> |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | <a class="shrink" href="../contents.html"><img src="http://zoo-project.org/img/zoo-sun-logo.png" class="img-responsive sun" style="display: inline;"> ZOO</a> |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | </a> |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | <div role="search"> |
---|
| 59 | <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> |
---|
| 60 | <input type="text" name="q" placeholder="Search docs" /> |
---|
| 61 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
| 62 | <input type="hidden" name="area" value="default" /> |
---|
| 63 | </form> |
---|
| 64 | </div> |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | </div> |
---|
| 68 | |
---|
| 69 | <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | <ul> |
---|
| 74 | <li class="toctree-l1"><a class="reference internal" href="../intro.html">Introduction</a><ul> |
---|
| 75 | <li class="toctree-l2"><a class="reference internal" href="../intro.html#what-is-zoo-project">What is ZOO-Project ?</a></li> |
---|
| 76 | <li class="toctree-l2"><a class="reference internal" href="../intro.html#zoo-project-components">ZOO-Project components</a></li> |
---|
| 77 | <li class="toctree-l2"><a class="reference internal" href="../intro.html#open-source">Open Source</a></li> |
---|
| 78 | </ul> |
---|
| 79 | </li> |
---|
| 80 | <li class="toctree-l1"><a class="reference internal" href="index.html">ZOO-Project installation</a><ul> |
---|
| 81 | <li class="toctree-l2"><a class="reference internal" href="install-prerequisites.html">Prerequisites</a></li> |
---|
| 82 | <li class="toctree-l2"><a class="reference internal" href="install-download.html">Download</a></li> |
---|
| 83 | <li class="toctree-l2"><a class="reference internal" href="install-confoptions.html">Configure options</a></li> |
---|
| 84 | <li class="toctree-l2"><a class="reference internal" href="install-installation.html">Installation on Unix/Linux</a></li> |
---|
| 85 | </ul> |
---|
| 86 | </li> |
---|
| 87 | <li class="toctree-l1"><a class="reference internal" href="../kernel/index.html">ZOO-Kernel</a><ul> |
---|
| 88 | <li class="toctree-l2"><a class="reference internal" href="../kernel/what.html">What is ZOO-Kernel ?</a></li> |
---|
| 89 | <li class="toctree-l2"><a class="reference internal" href="../kernel/configuration.html">ZOO-Kernel configuration</a></li> |
---|
| 90 | <li class="toctree-l2"><a class="reference internal" href="../kernel/mapserver.html">Optional MapServer support</a></li> |
---|
| 91 | <li class="toctree-l2"><a class="reference internal" href="../kernel/orfeotoolbox.html">Optional Orfeo Toolbox support</a></li> |
---|
| 92 | <li class="toctree-l2"><a class="reference internal" href="../kernel/sagagis.html">Optional SAGA GIS support</a></li> |
---|
| 93 | </ul> |
---|
| 94 | </li> |
---|
| 95 | <li class="toctree-l1"><a class="reference internal" href="../services/index.html">ZOO-Services</a><ul> |
---|
| 96 | <li class="toctree-l2"><a class="reference internal" href="../services/what.html">What are ZOO-Services ?</a></li> |
---|
| 97 | <li class="toctree-l2"><a class="reference internal" href="../services/zcfg-reference.html">ZOO-Service configuration file</a></li> |
---|
| 98 | <li class="toctree-l2"><a class="reference internal" href="../services/process-profiles.html">Process profiles registry</a></li> |
---|
| 99 | <li class="toctree-l2"><a class="reference internal" href="../services/howtos.html">Create your own ZOO-Services</a></li> |
---|
| 100 | <li class="toctree-l2"><a class="reference internal" href="../services/status.html">ZOO Status Service</a></li> |
---|
| 101 | <li class="toctree-l2"><a class="reference internal" href="../services/debug.html">How To Debug ZOO Services</a></li> |
---|
| 102 | <li class="toctree-l2"><a class="reference internal" href="../services/zoo-services.html">Available ZOO-Services</a></li> |
---|
| 103 | </ul> |
---|
| 104 | </li> |
---|
| 105 | <li class="toctree-l1"><a class="reference internal" href="../api/index.html">ZOO-API</a><ul> |
---|
| 106 | <li class="toctree-l2"><a class="reference internal" href="../api/what.html">What is ZOO-API ?</a></li> |
---|
| 107 | <li class="toctree-l2"><a class="reference internal" href="../api/howto.html">Using ZOO-API</a></li> |
---|
| 108 | <li class="toctree-l2"><a class="reference internal" href="../api/classes.html">ZOO-API Classes</a></li> |
---|
| 109 | <li class="toctree-l2"><a class="reference internal" href="../api/examples.html">Examples</a></li> |
---|
| 110 | </ul> |
---|
| 111 | </li> |
---|
| 112 | <li class="toctree-l1"><a class="reference internal" href="../client/index.html">ZOO-Client</a><ul> |
---|
| 113 | <li class="toctree-l2"><a class="reference internal" href="../client/what.html">What is ZOO-Client ?</a></li> |
---|
| 114 | <li class="toctree-l2"><a class="reference internal" href="../client/howto.html">Using ZOO-Client</a></li> |
---|
| 115 | <li class="toctree-l2"><a class="reference internal" href="../client/example.html">Example application</a></li> |
---|
| 116 | </ul> |
---|
| 117 | </li> |
---|
| 118 | <li class="toctree-l1"><a class="reference internal" href="../contribute/index.html">Contributor Guide</a><ul> |
---|
| 119 | <li class="toctree-l2"><a class="reference internal" href="../contribute/howto.html">How to contribute ?</a></li> |
---|
| 120 | <li class="toctree-l2"><a class="reference internal" href="../contribute/code.html">Contribute code</a></li> |
---|
| 121 | </ul> |
---|
| 122 | </li> |
---|
| 123 | </ul> |
---|
| 124 | |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | </div> |
---|
| 128 | |
---|
| 129 | </nav> |
---|
| 130 | |
---|
| 131 | <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
---|
| 132 | |
---|
| 133 | |
---|
| 134 | <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
---|
| 135 | <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
---|
| 136 | <a href="../contents.html">ZOO-Project</a> |
---|
| 137 | </nav> |
---|
| 138 | |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | <div class="wy-nav-content"> |
---|
| 142 | <div class="rst-content"> |
---|
| 143 | <div role="navigation" aria-label="breadcrumbs navigation"> |
---|
| 144 | <ul class="wy-breadcrumbs"> |
---|
| 145 | |
---|
| 146 | <li><a href="../contents.html"> Docs</a> ∕  </li> |
---|
| 147 | |
---|
| 148 | <li>Debian / Ubuntu</li> |
---|
| 149 | <li class="wy-breadcrumbs-aside"> |
---|
| 150 | |
---|
| 151 | <a href="../_sources/install/install-debian.txt" rel="nofollow"> View page source</a> |
---|
| 152 | |
---|
| 153 | </li> |
---|
| 154 | </ul> |
---|
| 155 | <hr/> |
---|
| 156 | </div> |
---|
| 157 | <div role="main" class="document"> |
---|
| 158 | |
---|
| 159 | <div class="section" id="debian-ubuntu"> |
---|
| 160 | <span id="kernel-installation-debian"></span><h1><a class="toc-backref" href="#table-of-contents">Debian / Ubuntu</a><a class="headerlink" href="#debian-ubuntu" title="Permalink to this headline">¶</a></h1> |
---|
| 161 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 162 | <col class="field-name" /> |
---|
| 163 | <col class="field-body" /> |
---|
| 164 | <tbody valign="top"> |
---|
| 165 | <tr class="field-odd field"><th class="field-name">Authors:</th><td class="field-body">Nicolas Bozon, Gérald Fenoy, Jeff McKenna, Luca Delucchi</td> |
---|
| 166 | </tr> |
---|
| 167 | <tr class="field-even field"><th class="field-name">Last Updated:</th><td class="field-body">$Date: 2013-06-21 18:55:49 +0200 (Ven, 21 jui 2013) $</td> |
---|
| 168 | </tr> |
---|
| 169 | </tbody> |
---|
| 170 | </table> |
---|
| 171 | <div class="contents topic" id="table-of-contents"> |
---|
| 172 | <p class="topic-title first">Table of Contents</p> |
---|
| 173 | <ul class="simple"> |
---|
| 174 | <li><a class="reference internal" href="#debian-ubuntu" id="id1">Debian / Ubuntu</a><ul> |
---|
| 175 | <li><a class="reference internal" href="#ubuntu-12-04-dependencies" id="id2">Ubuntu 12.04 dependencies</a></li> |
---|
| 176 | <li><a class="reference internal" href="#debian-7-0-dependencies" id="id3">Debian 7.0 dependencies</a></li> |
---|
| 177 | <li><a class="reference internal" href="#installation-workflow" id="id4">Installation Workflow</a></li> |
---|
| 178 | <li><a class="reference internal" href="#rewrite-rule-configuration" id="id5">Rewrite rule configuration</a></li> |
---|
| 179 | <li><a class="reference internal" href="#compile-mapserver" id="id6">Compile MapServer</a></li> |
---|
| 180 | </ul> |
---|
| 181 | </li> |
---|
| 182 | </ul> |
---|
| 183 | </div> |
---|
| 184 | <div class="admonition note"> |
---|
| 185 | <p class="first admonition-title">Note</p> |
---|
| 186 | <p class="last">An Ubuntu 10.4 with ZOO virtual image is available at <a class="reference external" href="http://www.zoo-project.org/Ubuntu10.4_ZOO.zip">http://www.zoo-project.org/Ubuntu10.4_ZOO.zip</a> |
---|
| 187 | (root: ZOO.test)</p> |
---|
| 188 | </div> |
---|
| 189 | <div class="section" id="ubuntu-12-04-dependencies"> |
---|
| 190 | <h2><a class="toc-backref" href="#table-of-contents">Ubuntu 12.04 dependencies</a><a class="headerlink" href="#ubuntu-12-04-dependencies" title="Permalink to this headline">¶</a></h2> |
---|
| 191 | <ul class="simple"> |
---|
| 192 | <li>install default dependencies</li> |
---|
| 193 | </ul> |
---|
| 194 | <div class="highlight-python"><div class="highlight"><pre>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 |
---|
| 195 | </pre></div> |
---|
| 196 | </div> |
---|
| 197 | <ul class="simple"> |
---|
| 198 | <li>add ubuntugis repository to obtain the newer GIS libraries</li> |
---|
| 199 | </ul> |
---|
| 200 | <div class="highlight-python"><div class="highlight"><pre>sudo add-apt-repository ppa:ubuntugis/ppa |
---|
| 201 | sudo apt-get update |
---|
| 202 | </pre></div> |
---|
| 203 | </div> |
---|
| 204 | <ul class="simple"> |
---|
| 205 | <li>install geographic library</li> |
---|
| 206 | </ul> |
---|
| 207 | <div class="highlight-python"><div class="highlight"><pre>sudo apt-get install libgdal1-dev |
---|
| 208 | </pre></div> |
---|
| 209 | </div> |
---|
| 210 | <ul class="simple"> |
---|
| 211 | <li>download ZOO source</li> |
---|
| 212 | </ul> |
---|
| 213 | </div> |
---|
| 214 | <div class="section" id="debian-7-0-dependencies"> |
---|
| 215 | <h2><a class="toc-backref" href="#table-of-contents">Debian 7.0 dependencies</a><a class="headerlink" href="#debian-7-0-dependencies" title="Permalink to this headline">¶</a></h2> |
---|
| 216 | <ul class="simple"> |
---|
| 217 | <li>install dependencies</li> |
---|
| 218 | </ul> |
---|
| 219 | <div class="highlight-python"><div class="highlight"><pre>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 |
---|
| 220 | </pre></div> |
---|
| 221 | </div> |
---|
| 222 | </div> |
---|
| 223 | <div class="section" id="installation-workflow"> |
---|
| 224 | <h2><a class="toc-backref" href="#table-of-contents">Installation Workflow</a><a class="headerlink" href="#installation-workflow" title="Permalink to this headline">¶</a></h2> |
---|
| 225 | <div class="admonition note"> |
---|
| 226 | <p class="first admonition-title">Note</p> |
---|
| 227 | <p class="last">In the following lines you will find <code class="docutils literal"><span class="pre">as</span> <span class="pre">administrator</span> <span class="pre">user</span></code> note, |
---|
| 228 | on Ubuntu you have to add <code class="docutils literal"><span class="pre">sudo</span></code> at the beginning of line, on Debian |
---|
| 229 | you can use <code class="docutils literal"><span class="pre">su</span> <span class="pre">-c</span> <span class="pre">COMMAND</span></code>)</p> |
---|
| 230 | </div> |
---|
| 231 | <div class="highlight-python"><div class="highlight"><pre>svn checkout http://svn.zoo-project.org/svn/trunk zoo-project |
---|
| 232 | </pre></div> |
---|
| 233 | </div> |
---|
| 234 | <ul class="simple"> |
---|
| 235 | <li>install cgic from packages</li> |
---|
| 236 | </ul> |
---|
| 237 | <div class="highlight-python"><div class="highlight"><pre>cd zoo-project/thirds/cgic206/ |
---|
| 238 | </pre></div> |
---|
| 239 | </div> |
---|
| 240 | <ul class="simple"> |
---|
| 241 | <li>compile</li> |
---|
| 242 | </ul> |
---|
| 243 | <div class="highlight-python"><div class="highlight"><pre><span class="n">make</span> |
---|
| 244 | </pre></div> |
---|
| 245 | </div> |
---|
| 246 | <ul class="simple"> |
---|
| 247 | <li>if you want use Mapserver (optional) for WMS, WFS and WCS output read <a class="reference internal" href="#mapserver"><span>Compile MapServer</span></a></li> |
---|
| 248 | <li>go to kernel path</li> |
---|
| 249 | </ul> |
---|
| 250 | <div class="highlight-python"><div class="highlight"><pre>cd ../../zoo-project/zoo-kernel/ |
---|
| 251 | </pre></div> |
---|
| 252 | </div> |
---|
| 253 | <ul class="simple"> |
---|
| 254 | <li>create configure file</li> |
---|
| 255 | </ul> |
---|
| 256 | <div class="highlight-python"><div class="highlight"><pre><span class="n">autoconf</span> |
---|
| 257 | </pre></div> |
---|
| 258 | </div> |
---|
| 259 | <ul class="simple"> |
---|
| 260 | <li>run configure</li> |
---|
| 261 | </ul> |
---|
| 262 | <div class="highlight-python"><div class="highlight"><pre>./configure --with-js --with-python |
---|
| 263 | </pre></div> |
---|
| 264 | </div> |
---|
| 265 | <div class="admonition note"> |
---|
| 266 | <p class="first admonition-title">Note</p> |
---|
| 267 | <p class="last">For PHP, you must make sure to compile PHP with <a class="reference external" href="http://www.zoo-project.org/trac/wiki/ZooKernel/Embed/PHP#ConfigureandInstallPHPEmbedlibrary">–enable-embed</a>.</p> |
---|
| 268 | </div> |
---|
| 269 | <div class="admonition note"> |
---|
| 270 | <p class="first admonition-title">Note</p> |
---|
| 271 | <p class="last">To use MapServer add the option <code class="docutils literal"><span class="pre">--with-mapserver=/path/to/mapserver/source</span></code></p> |
---|
| 272 | </div> |
---|
| 273 | <ul class="simple"> |
---|
| 274 | <li>compile</li> |
---|
| 275 | </ul> |
---|
| 276 | <div class="highlight-python"><div class="highlight"><pre><span class="n">make</span> |
---|
| 277 | </pre></div> |
---|
| 278 | </div> |
---|
| 279 | <ul class="simple"> |
---|
| 280 | <li>copy necessary files into your cgi-bin (as administrator user)</li> |
---|
| 281 | </ul> |
---|
| 282 | <div class="highlight-python"><div class="highlight"><pre>cp main.cfg /usr/lib/cgi-bin |
---|
| 283 | cp zoo_loader.cgi /usr/lib/cgi-bin |
---|
| 284 | </pre></div> |
---|
| 285 | </div> |
---|
| 286 | <ul class="simple"> |
---|
| 287 | <li>install ZOO ServiceProvider, in this case we try Python service (as administrator user)</li> |
---|
| 288 | </ul> |
---|
| 289 | <div class="highlight-python"><div class="highlight"><pre>cp ../zoo-services/hello-py/cgi-env/*.zcfg /usr/lib/cgi-bin |
---|
| 290 | cp ../zoo-services/hello-py/*.py /usr/lib/cgi-bin/ |
---|
| 291 | </pre></div> |
---|
| 292 | </div> |
---|
| 293 | <ul class="simple"> |
---|
| 294 | <li>change some information in the main.cfg (as administrator user)</li> |
---|
| 295 | </ul> |
---|
| 296 | <div class="highlight-python"><div class="highlight"><pre>nano /usr/lib/cgi-bin/main.cfg |
---|
| 297 | - serverAddress = http://127.0.0.1 |
---|
| 298 | </pre></div> |
---|
| 299 | </div> |
---|
| 300 | <ul class="simple"> |
---|
| 301 | <li>try the installation<ul> |
---|
| 302 | <li><a class="reference external" href="http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=GetCapabilities&Version=1.0.0">http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=GetCapabilities&Version=1.0.0</a></li> |
---|
| 303 | <li><a class="reference external" href="http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy">http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy</a></li> |
---|
| 304 | <li><a class="reference external" href="http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=myname">http://127.0.0.1/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=myname</a></li> |
---|
| 305 | </ul> |
---|
| 306 | </li> |
---|
| 307 | </ul> |
---|
| 308 | <div class="admonition note"> |
---|
| 309 | <p class="first admonition-title">Note</p> |
---|
| 310 | <p>If you have some problem in the execute request using Python service, add the following to <code class="docutils literal"><span class="pre">main.cfg</span></code>:</p> |
---|
| 311 | <div class="last highlight-python"><div class="highlight"><pre>[env] |
---|
| 312 | PYTHONPATH=<YOUR_PYTHONPATH> |
---|
| 313 | </pre></div> |
---|
| 314 | </div> |
---|
| 315 | </div> |
---|
| 316 | </div> |
---|
| 317 | <div class="section" id="rewrite-rule-configuration"> |
---|
| 318 | <h2><a class="toc-backref" href="#table-of-contents">Rewrite rule configuration</a><a class="headerlink" href="#rewrite-rule-configuration" title="Permalink to this headline">¶</a></h2> |
---|
| 319 | <ul class="simple"> |
---|
| 320 | <li>for better readability and fully functional ZOO Kernel, you have to modify the default |
---|
| 321 | Apache configuration in order to be able to use the <a class="reference external" href="http://localhost/zoo/">http://localhost/zoo/</a> url directly. |
---|
| 322 | Run (as administrator user)</li> |
---|
| 323 | </ul> |
---|
| 324 | <div class="highlight-python"><div class="highlight"><pre>nano /usr/lib/cgi-bin/main.cfg |
---|
| 325 | - serverAddress = http://localhost/zoo |
---|
| 326 | </pre></div> |
---|
| 327 | </div> |
---|
| 328 | <ul class="simple"> |
---|
| 329 | <li>first, please create a <code class="docutils literal"><span class="pre">zoo</span></code> directory in <code class="docutils literal"><span class="pre">/var/www/</span></code> which is used by Apache as the |
---|
| 330 | DocumentRoot (as administrator user)</li> |
---|
| 331 | </ul> |
---|
| 332 | <div class="highlight-python"><div class="highlight"><pre><span class="n">mkdir</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">zoo</span> |
---|
| 333 | </pre></div> |
---|
| 334 | </div> |
---|
| 335 | <ul class="simple"> |
---|
| 336 | <li>Then, please edit the <code class="docutils literal"><span class="pre">/etc/apache2/sites-available/default</span></code> configuration file and add the following |
---|
| 337 | lines after the Directory block related to /var/www directory (as administrator user)</li> |
---|
| 338 | </ul> |
---|
| 339 | <div class="highlight-python"><div class="highlight"><pre><Directory /var/www/zoo/> |
---|
| 340 | Options Indexes FollowSymLinks MultiViews |
---|
| 341 | AllowOverride All |
---|
| 342 | Order allow,deny |
---|
| 343 | allow from all |
---|
| 344 | </Directory> |
---|
| 345 | </pre></div> |
---|
| 346 | </div> |
---|
| 347 | <ul class="simple"> |
---|
| 348 | <li>now create a small .htaccess file in the <code class="docutils literal"><span class="pre">/var/www/zoo</span></code> containing the following lines (as administrator user)</li> |
---|
| 349 | </ul> |
---|
| 350 | <div class="highlight-python"><div class="highlight"><pre>RewriteEngine on |
---|
| 351 | RewriteRule call/(.*)/(.*) /cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=$1&DataInputs=sid=$2&RawDataOutput=Result [L,QSA] |
---|
| 352 | RewriteRule (.*)/(.*) /cgi-bin/zoo_loader.cgi?metapath=$1 [L,QSA] |
---|
| 353 | RewriteRule (.*) /cgi-bin/zoo_loader.cgi [L,QSA] |
---|
| 354 | </pre></div> |
---|
| 355 | </div> |
---|
| 356 | <ul class="simple"> |
---|
| 357 | <li>for this last file to be taken into account by Apache, you must activate the |
---|
| 358 | rewrite Apache module by copying a load file as bellow (as administrator user)</li> |
---|
| 359 | </ul> |
---|
| 360 | <div class="highlight-python"><div class="highlight"><pre>cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ |
---|
| 361 | </pre></div> |
---|
| 362 | </div> |
---|
| 363 | <ul class="simple"> |
---|
| 364 | <li>or using the a2enmod tool this way (as administrator user)</li> |
---|
| 365 | </ul> |
---|
| 366 | <div class="highlight-python"><div class="highlight"><pre>a2enmod rewrite |
---|
| 367 | </pre></div> |
---|
| 368 | </div> |
---|
| 369 | <ul class="simple"> |
---|
| 370 | <li>now you should be able to access the ZOO Kernel using a simplified by restarting |
---|
| 371 | your Apache Web server (as administrator user)</li> |
---|
| 372 | </ul> |
---|
| 373 | <dl class="docutils"> |
---|
| 374 | <dt>::</dt> |
---|
| 375 | <dd>/etc/init.d/apache2 restart</dd> |
---|
| 376 | </dl> |
---|
| 377 | <ul class="simple"> |
---|
| 378 | <li>now you can try:<ul> |
---|
| 379 | <li><a class="reference external" href="http://localhost/zoo/?Service=WPS&Request=GetCapabilities&Version=1.0.0">http://localhost/zoo/?Service=WPS&Request=GetCapabilities&Version=1.0.0</a></li> |
---|
| 380 | <li><a class="reference external" href="http://localhost/zoo/?Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy">http://localhost/zoo/?Service=WPS&Request=DescribeProcess&Version=1.0.0&Identifier=HelloPy</a></li> |
---|
| 381 | <li><a class="reference external" href="http://localhost/zoo/?Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=myname">http://localhost/zoo/?Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=myname</a></li> |
---|
| 382 | </ul> |
---|
| 383 | </li> |
---|
| 384 | </ul> |
---|
| 385 | </div> |
---|
| 386 | <div class="section" id="compile-mapserver"> |
---|
| 387 | <span id="mapserver"></span><h2><a class="toc-backref" href="#table-of-contents">Compile MapServer</a><a class="headerlink" href="#compile-mapserver" title="Permalink to this headline">¶</a></h2> |
---|
| 388 | <ul class="simple"> |
---|
| 389 | <li>install MapServer dependencies (as administrator user)</li> |
---|
| 390 | </ul> |
---|
| 391 | <div class="highlight-python"><div class="highlight"><pre>apt-get install git libfreetype6-dev libproj-dev libkml-dev libcairo-dev libxml2-dev libgd2-xpm-dev libxslt1-dev |
---|
| 392 | </pre></div> |
---|
| 393 | </div> |
---|
| 394 | <ul class="simple"> |
---|
| 395 | <li>extract MapServer from git repository</li> |
---|
| 396 | </ul> |
---|
| 397 | <div class="highlight-python"><div class="highlight"><pre>git clone https://github.com/mapserver/mapserver.git |
---|
| 398 | cd mapserver |
---|
| 399 | git checkout branch-6-2 |
---|
| 400 | git pull |
---|
| 401 | </pre></div> |
---|
| 402 | </div> |
---|
| 403 | <ul class="simple"> |
---|
| 404 | <li>now compile MapServer</li> |
---|
| 405 | </ul> |
---|
| 406 | <div class="highlight-python"><div class="highlight"><pre>./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 |
---|
| 407 | make |
---|
| 408 | </pre></div> |
---|
| 409 | </div> |
---|
| 410 | <ul class="simple"> |
---|
| 411 | <li>now install MapServer (as administrator user)</li> |
---|
| 412 | </ul> |
---|
| 413 | <div class="highlight-python"><div class="highlight"><pre>make install |
---|
| 414 | </pre></div> |
---|
| 415 | </div> |
---|
| 416 | <ul class="simple"> |
---|
| 417 | <li>now add path to libraries path (as administrator user)</li> |
---|
| 418 | </ul> |
---|
| 419 | <div class="highlight-python"><div class="highlight"><pre>nano /etc/ld.so.conf.d/mapserver.conf |
---|
| 420 | - /usr/local/lib/ |
---|
| 421 | </pre></div> |
---|
| 422 | </div> |
---|
| 423 | <ul class="simple"> |
---|
| 424 | <li>run as administrator</li> |
---|
| 425 | </ul> |
---|
| 426 | <div class="highlight-python"><div class="highlight"><pre><span class="n">ldconfig</span> |
---|
| 427 | </pre></div> |
---|
| 428 | </div> |
---|
| 429 | </div> |
---|
| 430 | </div> |
---|
| 431 | |
---|
| 432 | |
---|
| 433 | </div> |
---|
| 434 | <footer> |
---|
| 435 | |
---|
| 436 | |
---|
| 437 | <hr/> |
---|
| 438 | <div class="pfoot"> |
---|
| 439 | <div role="contentinfo"> |
---|
| 440 | <p> |
---|
| 441 | © Copyright 2009-2015, ZOO-Project team. |
---|
| 442 | </p> |
---|
| 443 | </div> |
---|
| 444 | Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> inspired by <a href="https://readthedocs.org">Read the Docs</a>. |
---|
| 445 | </div> |
---|
| 446 | </footer> |
---|
| 447 | |
---|
| 448 | </div> |
---|
| 449 | </div> |
---|
| 450 | |
---|
| 451 | </section> |
---|
| 452 | |
---|
| 453 | </div> |
---|
| 454 | |
---|
| 455 | |
---|
| 456 | |
---|
| 457 | |
---|
| 458 | |
---|
| 459 | <script type="text/javascript"> |
---|
| 460 | var DOCUMENTATION_OPTIONS = { |
---|
| 461 | URL_ROOT:'../', |
---|
| 462 | VERSION:'1.4a0', |
---|
| 463 | COLLAPSE_INDEX:false, |
---|
| 464 | FILE_SUFFIX:'.html', |
---|
| 465 | HAS_SOURCE: true |
---|
| 466 | }; |
---|
| 467 | </script> |
---|
| 468 | <script type="text/javascript" src="../_static/jquery.js"></script> |
---|
| 469 | <script type="text/javascript" src="../_static/underscore.js"></script> |
---|
| 470 | <script type="text/javascript" src="../_static/doctools.js"></script> |
---|
| 471 | |
---|
| 472 | |
---|
| 473 | |
---|
| 474 | |
---|
| 475 | |
---|
| 476 | <script type="text/javascript" src="../_static/js/theme.js"></script> |
---|
| 477 | |
---|
| 478 | |
---|
| 479 | |
---|
| 480 | |
---|
| 481 | <script type="text/javascript"> |
---|
| 482 | jQuery(function () { |
---|
| 483 | SphinxRtdTheme.StickyNav.enable(); |
---|
| 484 | }); |
---|
| 485 | </script> |
---|
| 486 | |
---|
| 487 | |
---|
| 488 | </body> |
---|
| 489 | </html> |
---|