Prelude/prewikka
Inhaltsverzeichnis
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/bin/prewikka-httpd
start the http-daemon
NOTE: some distros put it into /usr/sbin
try:
http://localhost:8000
production usage? change httpd!
i recomend to switch the prewikka-httpd to a good webserver.
nevertheless i will use apache2 ;-)
Alias /prewikka/ /usr/share/prewikka/htdocs/ ScriptAlias /prewikka /usr/share/prewikka/cgi-bin/prewikka.cgi <Location /prewikka> Order deny,allow Deny from all Allow from localhost, 127.0.0.1 Allow from a.b.c.d/24 </Location>
put that anywhere in your httpd.conf or
create file .../conf.d/prewikka.conf
OR
for virtual hosts:
<VirtualHost *:80> ServerName my.hostname.tld Setenv PREWIKKA_CONFIG "/etc/prewikka/prewikka.conf" <Location "/"> AllowOverride None Options ExecCGI <IfModule mod_mime.c> AddHandler cgi-script .cgi </IfModule> Order allow,deny Allow from all </Location> Alias /prewikka/ /usr/share/prewikka/htdocs/ ScriptAlias /prewikka /usr/share/prewikka/cgi-bin/prewikka.cgi </VirtualHost>