Samizdat Setup on Debian ======================== Synopsis -------- 1) Install all required and recommended packages: apt-get install samizdat ruby-fast-gettext ruby-algorithm-diff \ ruby-redcloth libtzinfo-ruby1.9.1 postgresql-9.1 nginx thin 2) Configure Thin: Create separate user for your web application: adduser --system samizdat --group --no-create-home Create required directories: install -o samizdat -g samizdat -d \ /var/www/samizdat/content /run/samizdat mkdir /var/log/samizdat Copy example configuration file: cp /usr/share/samizdat/doc/examples/samizdat-thin.yaml /etc/thin 2) Configure Nginx: Copy example configuration files: cp -r /usr/share/samizdat/doc/examples/nginx/* /etc/nginx/ Enable the virtual host: ln -s /etc/nginx/sites-available/samizdat \ /etc/nginx/sites-enabled/samizdat If you want to access your Samizdat site by something other than 'samizdat' hostname, edit the server_name line in the virtual host config. If you want run multiple Samizdat sites on the same server, that's where you make all the other site-specific changes (document root, log files, certificates etc.) 3) Create PostgreSQL database: /usr/bin/samizdat-create-database samizdat 4) Restart SynCache, Thin, and Nginx and load your site in the browser.