-
Notifications
You must be signed in to change notification settings - Fork 11
/
INSTALL
60 lines (44 loc) · 1.74 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
1) Download the latest tar ball: http://github.com/alexksikes/mlss/tarball/master.
2) tar xvzf "the tar ball"
3) Download install webpy, follow instructions here: http://webpy.org/install.
4) Setup your database: mysql -p mlss < ./schema.sql. Note you first need to create a database called mlss.
If you want to try with sample data run: mysql -p mlss < ./data.sql
5) Go over your site settings ./config_example.py and rename this file ./config.py
6) Now you can test it: python ./application.py
7) Setup lighttpd for production use. Here is a part your config file:
...
name = "mlss_admin"
script = "path to ./application.py"
server.document-root = "path to ./public/"
# make sure users can access the application forms but not the admin
$HTTP["url"] !~ "/(submit_application|submit_reference|css|img|js)/?" {
auth.require = ( "" =>
(
"method" => "digest",
"realm" => "Authorized users only",
"require" => "valid-user",
))
}
url.rewrite += (
# Commented for development
#"^/img/(.*)$" => "/img/$1",
#"^/css/(.*)$" => "/css/$1",
#"^/js/(.*)$" => "/js/$1",
"^/resumes/(.*)$" => "/resumes/$1",
"^/(.*)$" => script + "/$1",
)
fastcgi.server += ( script =>
((
"socket" => "/tmp/" + name + var.PID + ".socket",
"bin-path" => script,
"check-local" => "disable",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
),
))
)
...
8) Make sure lighttpd has write access to the directory ./public/resumes/
You'd do something like this: sudo chgrp www-data ./public/resumes; chmod 775 ./public/resumes;
9) Restart lighttpd and you're done.