--------------------------------------------------------------------------------
 $Id: INSTALL 365 2011-07-25 13:07:11Z novacek $

 Project: EOxServer <http://eoxserver.org>
 Purpose: 
 Authors: Stephan Krause <stephan.krause@eox.at>
          Stephan Meissl <stephan.meissl@eox.at>

--------------------------------------------------------------------------------
Copyright (C) 2011 EOX IT Services GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
copies of the Software, and to permit persons to whom the Software is 
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies of this Software or works derived from this Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
--------------------------------------------------------------------------------


##############################################
# Quick installation guide for the impatient #
##############################################

+--------------------------------------------+
| Running from the command-line
+--------------------------------------------+

Copy directory "eoxserver" to destination.
Change to "eoxserver" directory.
Copy or move "TEMPLATE_settings.py" to "settings.py" and adjust settings.
Optional: Add link "initial_data.json" to "eoxserver/server/fixtures/" pointing to either "template_initial_data.json" or "../../../autotest/data/meris/meris_data.json" in order to add test data.
Add the parent directory of eoxserver to the Python path: export PYTHONPATH=<eoxserver-parent-dir>
Run: "python manage.py syncdb"
Run: "python manage.py runserver"
Point your browser to "http://localhost:8000/ows?" (e.g. "http://localhost:8000/ows?service=wcs&version=2.0.0&request=GetCapabilities") or "http://localhost:8000/admin/".


+--------------------------------------------+
| Running via WSGI interface
+--------------------------------------------+

Copy directory "eoxserver" to destination.
Change to "eoxserver" directory.
Copy or move "TEMPLATE_settings.py" to "settings.py" and adjust settings.
Optional: Add link "initial_data.json" to "eoxserver/server/fixtures/" pointing to either "template_initial_data.json" or "../../../autotest/data/meris/meris_data.json" in order to add test data.
Run: "python manage.py syncdb"
Adjust "deployment/wsgi.py" to your environment.
Add the following to your Apache web server configuration (e.g. /etc/apache2/sites-enabled/eoxserver):
-----------------------------------------------------------------
Alias /eoxserver <path_to_eoxserver>/eoxserver/deployment/wsgi.py
<Directory "<path_to_eoxserver>/eoxserver/deployment">
    AllowOverride None
    Options +ExecCGI -MultiViews
    AddHandler wsgi-script .py
</Directory>
-----------------------------------------------------------------
Restart Apache web server and point your browser to "http://<url-to-your-server/eoxserver/ows?" (e.g. "http://<url-to-your-server/eoxserver/ows?service=wcs&version=2.0.0&request=GetCapabilities") or "http://<url-to-your-server/eoxserver/admin/".


##############################################
# Installation guide                         #
##############################################
A comprehensive installation guide will be provided separately.


##############################################
# OpenSuse Notes                             #
##############################################
A few pointers on getting things running on OpenSuse.
Based on 11.4, might apply to future versions as well.

1. system software
-------------------
Make sure the following are installed (e.g. via yast2):
    gdal-python
    apache2-mod-wsgi

2. pysqlite
-----------
By default, pysqlite2 on OpenSuse comes with SQLITE_OMIT_LOAD_EXTENSION
defined; therefore to allow enable_load_extension() it is necessary to rebiuld
from the source, not omitting it ::

   Download the source from http://code.google.com/p/pysqlite/
   edit setup.cfg to comment out SQLITE_OMIT_LOAD_EXENSION:
      #define=SQLITE_OMIT_LOAD_EXTENSION
   sudo python setup.py install --prefix=/usr

Note the use of the --prefix option. Adjust as appropriate.

3. django_extensions
--------------------

  sudo easy_install django_extensions

