1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
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.
|