elveos

elveos Git Source Tree

Root/INSTALL

1************************************
2* Install and configure lighttpd *
3************************************
4Install lighttpd:
5apt-get install lighttpd
6
7In '/etc/lighttpd/lighttpd.conf' modify the filed 'server.document-root'
8to 'www' folder in bloatit.
9Example:
10server.document-root = "/home/fred/projets/bloatit/www"
11
12Uncomment 'mod_rewrite' in 'server.modules'
13
14
15Create a symbolic link of 'lighttpd/fastcgi.conf' in '/etc/lighttpd/conf-enabled/':
16cd /etc/lighttpd/conf-enabled/
17ln -s /home/fred/bloatit/lighttpd/fastcgi.conf
18
19Create a symbolic link of 'lighttpd/rewrite.lighttpd.conf' in '/etc/lighttpd/conf-enabled/':
20cd /etc/lighttpd/conf-enabled/
21ln -s /home/fred/bloatit/lighttpd/rewrite.lighttpd.conf
22
23**********************
24* Restart lighttpd *
25**********************
26Restart lighttpd config:
27service lighttpd restart
28
29Verify the loading in logs:hibernate.cfg.xml not found
30cat /var/log/lighttpd/error.log
31
32**********************
33* Install postgresql *
34**********************
35# Install the postgresql package
36sudo apt-get install postgresql
37sudo apt-get install postgresql-client
38
39# Use the postgres User to create a new DB and a new User
40sudo su postgres
41psql
42#> CREATE USER bloatit;
43#> ALTER ROLE bloatit WITH createdb;
44#> CREATE DATABASE bloatit OWNER bloatit;
45#> ALTER USER bloatit WITH ENCRYPTED PASSWORD 'passe' ;
46#>\q
47
48# change the authentification method
49vim /etc/postgresql/8.4/main/pg_hba.conf
50# Go to the end of the file.
51# change ident to md5 [EXCEPT FOR THE USER "postgres"]
52
53#leave the postgres session
54exit
55
56# restart the server
57sudo service postgresql restart
58
59************************************
60* Install gettext *
61************************************
62
63sudo apt-get install gettext
64
65************************************
66* Configure the java server *
67************************************
68-> copy the files/folders from etc/ to ~/.config/bloatit/
69   There are value to configure, see the comments in the files.
70
71-> copy the files/folders from share/ to ~/.local/share/bloatit/
72
73************************************
74* Configure access right *
75************************************
76
77The lighttpd process will need to read in ~/.local/share (depending of java
78process user). You may need to run the java process with the lighttpd user or
79change the right:
80
81chmod 777 ~/.local
82chmod 777 ~/.local/share
83
84
85Create directory /var/local/lucene/indexes and give write right to it.
86
87
88************************************
89* Install and run *
90************************************
91
92mvn clean install -Dmaven.test.skip=true
93cd main
94mvn exec:java
95
96

Archive Download this file