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 |
---|
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
- Download Python-2.4.6 (http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz).
-
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
-
Install virtualenv with the following command:
pip install virtualenv
-
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/
-
Create and activate a virtual environment:
virtualenv --python=/path/to/python2.4/bin/python --no-site-packages --distribute .
source bin/activate
-
Run bootstrap:
python bootstrap.py -c semide.cfg (use semide-zeo.cfg if you choosed Production ZEO install)
-
Run buildout:
bin/buildout -c semide.cfg (use semide-zeo.cfg if you choosed Production ZEO install)
-
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 instancesbin/zeo-server start
bin/zope-instance{number} start