Euro-Mediterranean Information System on know-how in the Water sector
International portal
 

HTML Document Installation instructions for the EMWIS portal 2.0 (current version)

The SEMIDE portal is build on top of the Naaya Content Management System and a custom layer to fit the specific SEMIDE needs.

Released 04/05/2012
PDF

SEMIDE Deployment instructions

There are 2 types of possible deployments:

  • Production/development (a single zope-instance) - semide.cfg
  • Production ZEO (2 or more zope-instances with ZEO + pound) - semide-zeo.cfg

 

ZEO deployment may require some more configuration (setting up apache and pound)

Before you download and install python you need to have the following dependencies first:

  • build-essential (Required to compile python)
  • zlib1g-dev (Used for zip support)
  • libreadline-dev (Optional: useful for debugging purposes)
  • libxslt-dev (Required by lxml)
  • libmysqlclient-dev
  • libsqlite3-dev
  • libxml2-dev
  • libssl-dev
  • openssl
  • libjpeg-dev
  • libpng-dev

 

On Ubuntu or Debian install the dependencies with the following command sudo apt-get install build-essential zlib1g-dev libglib2.0-dev libreadline-dev libxslt-dev libmysqlclient-dev libsqlite3-dev libxml2-dev libssl-dev openssl libjpeg-dev libpng-dev

NOTE: If your already have Python-2.4.6 skip the following 2 steps

  1. Download Python-2.4.6 (http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz).
  2. Before compiling Python 2.4.6 you must edit and uncomment the following 4 line from Python-2.4.6/Modules/Setup.dist file #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz #_socket socketmodule. #_ssl _ssl.c \
    # -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
    # -L$(SSL)/lib -lssl -lcrypto
    #readline readline.c -lreadline -ltermcap After you uncomment these lines, install Python 2.4.6 with the following command: ./configure --prefix=/path/where/to/install/python/; make; make install
  3. Install virtualenv with the following command: pip install virtualenv
  4. Checkout the SEMIDE buildout from https://svn.eionet.europa.eu/repositories/Naaya/buildout/semide/ svn co https://svn.eionet.europa.eu/repositories/Naaya/buildout/semide/ ./semide cd semide/
  5. Create and activate a virtual environment: virtualenv --python=/path/to/python2.4/bin/python --no-site-packages --distribute . source bin/activate
  6. Run bootstrap:
    python bootstrap.py -c semide.cfg (use semide-zeo.cfg if you choosed Production ZEO install)
  7. Run buildout: bin/buildout -c semide.cfg (use semide-zeo.cfg if you choosed Production ZEO install)
  8. Start:
    If you selected the production enviroment or development simply: bin/zope-instance start If you selected zeo you need to start zeo server before any zope instances bin/zeo-server start
    bin/zope-instance{number} start