--------------------------------------------------------------------------------
 $Id: INSTALL 2050 2012-10-10 14:36:58Z meissls $

 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 #
##############################################

sudo pip install eoxserver
eoxserver-admin.py create_instance YOUR_INSTANCE_ID --init_spatialite
cd YOUR_INSTANCE_ID
python manage.py syncdb


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

python manage.py runserver

# Point your browser to: "http://localhost:8000/"


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

mkdir static
python manage.py collectstatic --noinput

# Add the following to your Apache web server configuration 
# (e.g. /etc/apache2/sites-enabled/eoxserver):
-----------------------------------------------------------------
Alias /static "<path_to_eoxserver_instance>/static"
Alias /eoxserver "<path_to_eoxserver_instance>/wsgi.py"
<Directory "<path_to_eoxserver_instance>">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    AddHandler wsgi-script .py
    Order allow,deny
    allow from all
</Directory>
-----------------------------------------------------------------
# Restart Apache web server and point your browser to: 
# "http://<url-to-your-server/eoxserver/"


##############################################
# Installation guide                         #
##############################################
A comprehensive installation guide is provided at: 
http://eoxserver.org/doc_trunk/en/users/install.html


##############################################
# 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

