$OpenBSD: README,v 1.2 2011/06/02 13:41:40 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running prelude-prewikka-0.9.17p4 on OpenBSD
+-----------------------------------------------------------------------

To start with prewikka, you have to create the "prewikka" database.

Instructions for PotsgreSQL:

  # su - _postgresql
  $ createdb -O prelude prewikka
  $ cd /usr/local/share/prewikka/database/
  $ psql -U prelude -W prewikka < pgsql.sql

  Then, fill-in prewikka.conf, sections [idmef_database] and [database]
  to use postgresql ("type", "host", "user", "pass", "name").

Instructions for MySQL:

  Login as a privileged user, e.g. 'root':

  # mysql -u root -p
  mysql> CREATE DATABASE prewikka;
  mysql> GRANT ALL PRIVILEGES on prewikka.* to prelude IDENTIFIED by '...';

  # cd /usr/local/share/prewikka/database/
  # mysql -u prelude -p prewikka < mysql.sql

  Then, fill-in prewikka.conf, sections [idmef_database] and [database]
  ("host", "user", "pass", "name").

Instructions for SQLite:

  # cd /var/prelude/
  # sqlite3 prewikka.db < /usr/local/share/prewikka/database/sqlite.sql
  # chmod 700 prewikka.db

  Then, fill-in prewikka.conf, sections [idmef_database] and [database]
  to use this/these database file(s), thanks to the "file" keyword
  (which indicates the location of the database).

Eventually, you can start prewikka's webserver (or Apache) which is
listening by default on 8000/tcp using:

if [ -x /usr/local/bin/prewikka-httpd ]; then
	echo -n ' prewikka-httpd'; /usr/local/bin/prewikka-httpd &
fi

The default user is "admin", with "admin" as password and should be
changed.
