Prepare your Ubuntu server (you are required to be a sudoer)

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install apache2 libapache2-mod-php5 file netpbm postgresql php5-pgsql git-core
$ sudo a2enmod rewrite
$ sudo a2enmod authnz_ldap

Install Steatite program

$ cd /var/www/
$ sudo git clone git://steatite.git.sourceforge.net/gitroot/steatite/steatite
$ cd steatite
$ sudo mkdir picture
$ sudo chown www-data picture
$ sudo mkdir thumbnail
$ sudo chown www-data thumbnail

Create an '.htaccess' file in 'picture' folder:

AuthType Basic
AuthName Hypertopic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://ldap.hypertopic.org/dc=hypertopic,dc=org?cn
require valid-user

Change Apache settings with:

AllowOverride All
AllowEncodedSlashes On

Reload Apache settings

$ sudo /etc/init.d/apache2 force-reload

Configure Steatite database

$ sudo -u postgres createdb -E utf8 steatite
$ sudo -u postgres psql steatite postgres -f schema.sql
$ sudo -u postgres createuser -D -S -R www-data
Powered by MediaWiki