~ubuntu-branches/ubuntu/hardy/prewikka/hardy

« back to all changes in this revision

Viewing changes to debian/README.Debian

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2007-04-11 14:41:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070411144109-fddsx2l43w21rwh5
Tags: 0.9.10-1
* New upstream release
* Patch postgresql tables creation script (do not drop inexistant tables)
* Update my email address
* Add watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
prewikka for Debian
 
2
-------------------
 
3
 
 
4
The Prewikka installation guide is available at:
 
5
https://trac.prelude-ids.org/wiki/InstallingPrewikka
 
6
 
 
7
 
 
8
Editing prewikka.conf
 
9
=====================
 
10
 
 
11
Once you have created the database for Prewikka you need to edit /etc/prewikka/prewikka.conf to fit your database settings prior to starting Prewikka.
 
12
The debian installation script will try to create the database and set the values, for the [database] section ONLY.
 
13
Even if you used the installer to create the database and tables, you will need to edit the configuration file for
 
14
other values.
 
15
 
 
16
[interface]
 
17
#This is the name at the top right and left of the Prewikka interface
 
18
#You can change it or leave as is
 
19
software: Prewikka
 
20
place: company ltd.
 
21
title: Prelude management
 
22
 
 
23
#The following are the setting for your prelude database
 
24
[idmef_database]
 
25
type: mysql
 
26
host: localhost
 
27
user: prelude
 
28
pass: prelude
 
29
name: prelude
 
30
 
 
31
#This is the database information for the prewikka DB you created above
 
32
[database]
 
33
type: mysql
 
34
host: localhost
 
35
user: prewikka
 
36
pass: prewikka
 
37
name: prewikka
 
38
 
 
39
#You can comment this out to stop logs from writing to stderr
 
40
[log stderr]
 
41
 
 
42
#No real need to edit this except to increase/decrease expiration time
 
43
[auth loginpassword]
 
44
expiration: 60
 
45
 
 
46
 
 
47
 
 
48
 
 
49
 
 
50
Choose one of the following methods to configure your web server:
 
51
 
 
52
Running Prewikka from the Apache web server (CGI/Apache)
 
53
========================================================
 
54
 
 
55
Apache / CGI setup with VirtualHost
 
56
-----------------------------------
 
57
 
 
58
<VirtualHost *:80>
 
59
 ServerName my.server.org
 
60
 Setenv PREWIKKA_CONFIG "/etc/prewikka/prewikka.conf"
 
61
 
 
62
<Location "/">
 
63
        AllowOverride None
 
64
        Options ExecCGI
 
65
 
 
66
        <IfModule mod_mime.c>
 
67
                AddHandler cgi-script .cgi
 
68
        </IfModule>
 
69
 
 
70
        Order allow,deny
 
71
        Allow from all
 
72
</Location>
 
73
 
 
74
Alias /prewikka/ /usr/share/prewikka/htdocs/
 
75
ScriptAlias / /usr/share/prewikka/cgi-bin/prewikka.cgi
 
76
 
 
77
</VirtualHost>
 
78
 
 
79
Note that the PREWIKKA_CONFIG environment variable is optional, if unset the default configuration file relative to your installation path will be used.
 
80
 
 
81
 
 
82
Apache / mod_python setup with VirtualHost
 
83
------------------------------------------
 
84
 
 
85
Experimental mod_python support is available in Prewikka starting from rc9.
 
86
 
 
87
<VirtualHost *:80>
 
88
        ServerName my.server.org
 
89
        
 
90
        <Location />
 
91
                SetHandler mod_python
 
92
                PythonHandler prewikka.ModPythonHandler
 
93
                PythonOption PrewikkaConfig /etc/prewikka/prewikka.conf
 
94
        </Location>
 
95
 
 
96
        <Location /prewikka>
 
97
                SetHandler None
 
98
        </Location>
 
99
 
 
100
        Alias /prewikka /usr/share/prewikka/htdocs
 
101
</VirtualHost>
 
102
 
 
103
Note that the PrewikkaConfig? settings is optional, if unset the default configuration file relative to your installation path will be used.
 
104
 
 
105
 
 
106
 
 
107
Running Prewikka from the command line tool
 
108
===========================================
 
109
 
 
110
If you didn't install Prewikka system wide (ie: you specified a prefix), use:
 
111
 
 
112
   $ PYTHONPATH=$prefix/lib/python2.4/site-packages $prefix/bin/prewikka-httpd
 
113
 
 
114
If you installed Prewikka system wide:
 
115
 
 
116
   $ /usr/bin/prewikka-httpd
 
117
 
 
118
You can then use your browser to connect to your machine on port 8000. The default login/password is admin please remember to change it.
 
119
 
 
120
 
 
121
 
 
122
Initial login
 
123
=============
 
124
 
 
125
Once everything is setup, you can use your browser to connect to the machine were Prewikka was installed. If you are not using Apache support, then remeber you should use the port 8000 to access Prewikka.
 
126
 
 
127
The default login/password is admin please remember to change it.
 
128
 
 
129
 
 
130
 -- Pierre Chifflier <chifflier@cpe.fr>  Wed,  7 Feb 2007 16:51:26 +0100