Gentoo: How to install Zine+lighttpd in 5 minutes

December 3, 2009 by vnsec · Leave a Comment 

This is how you can get Zine + lighty running under Gentoo in 5 minutes

  1. Install the required python packages for Zine
  2. (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
  3. Download and Install Zine
  4. (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
    
  5. Update lighttpd configuration
  6. # 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”
    )))

  7. Restart your lighttpd!
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • Reddit
  • Technorati
  • Tumblr
  • Twitter
  • Slashdot
  • Identi.ca