-
Notifications
You must be signed in to change notification settings - Fork 4
/
INSTALL
112 lines (61 loc) · 2.34 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
=== Requirements ===
* postgresql >= 8.2 (not for compiling)
* ocaml
* lwt >= 2.4.0
* eliom >= 4.0
* macaque >= 0.6.1
* ocaml-safepass >= 1.2
* ocamlpam (optional)
* ocamldap >= 2.2 (optional)
=== Compilation ===
Configure ocsimore (add --help to see all options):
$ sh configure
Compile ocsimore:
$ make
If you want system wide install, become root and install:
$ sudo make install
=== Database setup (common part) ===
Adapt /etc/postgresql/.../pg_hba.conf to give ident access
for user ocsimore by copying the following line at the right place
(usually before the "local all all ident sameuser" line):
local ocsimore ocsimore password
Restart postgresql, for example:
$ sudo /etc/init.d/postgresql restart
=== Database setup (automatic) ===
Just run the init script with the postgres administrator:
- from the source directory:
$ sudo -u postgres sh src/files/initdb.sh
- or after installation (can depend on your packages manager rules):
$ sudo -u postgres sh /usr/share/ocsimore/initdb.sh
Note: If somting goes wrong, do the following common part, and retry.
=== Database setup (manual) ===
Create a postgresql user with that name (here 'ocsimore').
The new user needs no special role.
$ sudo -u postgres createuser -P ocsimore
Create a database called ocsimore:
$ sudo -u postgres createdb -E UTF-8 -O ocsimore ocsimore
Then populate the database:
$ psql -U ocsimore -f src/files/createdb.sql ocsimore
If something goes wrong, you can delete the database by typing:
$ sudo -u postgres dropdb ocsimore
=== Configure ===
Adapt your /etc/ocsigenserver/ocsigenserver.conf with:
- from the source directory:
local/etc/ocsigen/ocsimore.conf
- or after installation (can depend on your packages manager rules):
/usr/share/ocsimore/ocsimore.conf
=== Install the static files ===
Now you need to install the static files that are located by default in
(can depend on your package manager):
/usr/share/ocsimore/static
to the directory you configured above. By default you can do:
# cp -r /usr/share/ocsimore/static /var/www/ocsimore
=== Run ===
Run Ocsigen, for example:
- from the source directory:
$ make run
- or after installation:
$ ocsigenserver
Note: Initially, as there is no wiki registered, you have to go to Ocsimore's
administration interface (by default on your site on path /ocsimoreadmin)
and create one.