This is how you can get Zine + lighty running under Gentoo in 5 minutes
1. Install the required python packages for Zine
(root) # cat /etc/portage/package.keywords
dev-python/werkzeug
dev-python/Babel
dev-python/html5lib
dev-python/flup
dev-python/sqlalchemy
(root) # emerge -av sqlalchemy jinja2 werkzeug simplejson html5lib pytz Babel lxml flup
2. Download and Install Zine
(download) $ wget http://zine.pocoo.org/releases/Zine-0.1.2.tar.gz
(download) $ tar zxvf Zine-0.1.2.tar.gz
(download) $ cd Zine-0.1.2
# Use --prefix to install zine to a different location than default (/usr)
(Zine-0.1.2) $ ./configure --prefix=/srv/usr && make install
# Create a working directory for your Zine fastcgi and configuration files
(Zine-0.1.2) $ mkdir -p /var/www/zine
(Zine-0.1.2) $ cp servers/zine.fcgi /var/www/zine
# Edit zine.fcgi to update INSTANCE_FOLDER and ZINE_LIB
(Zine-0.1.2) $ nano /var/www/zine/servers/zine.fcgi
INSTANCE_FOLDER = '/var/www/zine';
ZINE_LIB = '/srv/usr/lib/zine';
(Zine-0.1.2) $ chown lighttpd /var/www/zine (Zine-0.1.2) $ chmod 755 /var/www/zine/zine.fcgi
3. Update lighttpd configuration
# Edit /etc/lighttpd/mod_fastcgi.conf for global fcgi handler setup or
# add fastcgi.server to your VHOST config
(root) # nano /etc/lighttpd/mod_fastcgi.conf
fastcgi.server = ('' =>
((
'bin-path' => '/var/www/zine/zine.fcgi',
'socket' => '/tmp/fcgi-zine.socket',
'check-local' => 'disable'
)))
4. Restart your lighttpd!