openbsd-ports/security/prelude/prewikka/files
rui 048ced8792 long overdue update to prelude.
"reads fine" landry@, "look okay to me" laurent@, ok jasper@
2009-08-30 20:37:16 +00:00
..
README.OpenBSD - update to 0.9.8 . 2006-12-30 16:36:09 +00:00
siteconfig.py long overdue update to prelude. 2009-08-30 20:37:16 +00:00

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

Instructions for PotsgreSQL:

  # su - _postgresql
  $ createdb -O prelude prewikka
  $ cd ${PREFIX}/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 ${PREFIX}/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 < ${PREFIX}/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 ${LOCALBASE}/bin/prewikka-httpd ]; then
	echo -n ' prewikka-httpd'; ${LOCALBASE}/bin/prewikka-httpd &
fi

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