048ced8792
"reads fine" landry@, "look okay to me" laurent@, ok jasper@ |
||
---|---|---|
.. | ||
README.OpenBSD | ||
siteconfig.py |
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.