Zine

open source content publishing system


root/INSTALL

Revision 906:a675e4c9bfb6, 3.1 kB (checked in by mitsuhiko, 3 days ago)

Automated merge with file:///Users/mitsuhiko/Development/zine-0.1

Line 
1Zine 0.1 Installation Instructions
2==================================
3
4For a working Zine instance you need to have the following libraries
5installed:
6
7- Python 2.4 or higher
8- Werkzeug*
9- Jinja2*
10- A database (MySQL, SQLite or PostgreSQL and others are supported)
11- SQLAlchemy 0.5 [revision>=5491] or higher*
12- simplejson* [included in Python 2.6 and higher]
13- html5lib*
14- pytz*
15- Babel*
16- lxml* [2.0 or higher]
17
18Libraries marked with * are installable from the cheeseshop via
19easy_install / pip or might be available in Debian already.
20
21If you might use easy_install::
22
23    $ easy_install Werkzeug Jinja2 MySQL-python SQLAlchemy simplejson pytz Babel lxml html5lib
24
25To install lxml you may need the development packages of libxml2 and libxslt
26
27
28Installation
29------------
30
31Currently the installation of Zine is only possible on (mostly) posix
32systems like OS X, Solaris, BSD or Linux.  Development of Zine works
33on other operating systems as well and future release may provide a
34deployment plan for Windows as well.
35
36To install Zine on your system you have to configure and "make install" it::
37
38    $ ./configure --prefix=/usr && make install
39
40Zine installs itself into `/usr/lib/zine` and `/usr/share/zine`.  Please
41note that this does not install the dependencies.
42
43Note to package maintainers: for staged installs use DESTDIR variable
44
45The following example shows how to set up Zine for `mod_wsgi`.
46
471.  Create a new folder `/var/zine/yourblog` where `yourblog` is a name
48    that make sense for you.
492.  Copy the `zine.wsgi` file from `/usr/share/zine/servers` into the
50    newly created folder and open it with an editor.
513.  Modify the `INSTANCE_FOLDER` variable to point to the `yourblog` folder.
524.  Open your Apache vhost config or your Apache config, whatever you use
53    and add the following lines::
54
55        WSGIScriptAlias /yourblog /var/lib/zine/yourblog/zine.wsgi
56
57    This tells Apache that it should hook your blog into the webserver at
58    `/yourblog`.  You can also move it to a different vhost and mount it
59    in the root or ask Apache to spawn as different user.  More details
60    about that are available in the `mod_wsgi documentation`_.
615.  Make sure the user your Apache (or application if you configured a
62    different user for mod_wsgi) has read and write access to the
63    `yourblog` folder.
646.  Reload your apache and go to the URL of your blog and follow the
65    installation instructions.
66
67
68.. _mod_wsgi documentation: http://code.google.com/p/modwsgi/wiki/InstallationInstructions
69
70
71Development Quickstart
72----------------------
73
74For a quickstart with the development server do this::
75
76    $ mkdir instance
77    $ ./scripts/server -I instance
78
79After the first start you will find yourself in an installation wizard
80that helps you to create the database tables and an administrator
81account.
82
83To get access to a python console with the zine instance context do this::
84
85    $ ./scripts/shell
86
87Note that if your instance folder is not named "instance" or is not stored
88in this directory or if you are not below the instance folder you have to
89provide the path to it as argument to the scripts using the "-I" parameter.
Note: See TracBrowser for help on using the browser.