Prelude/prewikka: Unterschied zwischen den Versionen
Cbs (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „==database (optional)== the db is created by debian-lenny at installation.<br/> you will know that because it will ask you for the server-admin-password<br/> at i…“) |
(kein Unterschied)
|
Version vom 1. Juli 2010, 11:01 Uhr
database (optional)
the db is created by debian-lenny at installation.
you will know that because it will ask you for the server-admin-password
at installation time.
if NOT do it by yourself now.
mysql> CREATE database prewikka; mysql> GRANT ALL PRIVILEGES ON prewikka.* TO prewikka@'localhost' IDENTIFIED BY 'password';
create the DB, user and set rights for user...
mysql -u prewikka prewikka -p < /usr/share/prewikka/database/mysql.sql
import data-structure
At this point you need to edit the prewikka program's configuration. Open up
/etc/prewikka/prewikka.conf in an editor. Find the line with "place" and change
it to something that describes that machine or location. Locate the
"idmef_database" section of the file. You will likely need to just change
the password. Next, locate the "database" section (should be immediately
below). Update the password and change the database user to prewikka, but
the rest should be fine. Save and exit.
/etc/prewikka/prewikka.conf
[log syslog] level: info [log smtp] level: warning host: localhost from: prewikka@myhost.tld to: root@myhost.tld subject: Prewikka-Info
no more to do since DB should be configured already
test prewikka
/usr/sbin/prewikka-httpd
start the http-daemon
try:
http://localhost:8000