forked from plainblack/Lacuna-Server-Open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_a_server.txt
71 lines (38 loc) · 1.31 KB
/
setup_a_server.txt
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
Step 0: Get this Repo
mkdir /data
cd /data
git clone https://github.com/plainblack/Lacuna-Server-Open.git
Step 1: Prereqs
First you need to have all the prereqs installed. If you're on a CentOS / RHEL environment you can do the following:
cd bin/setup/server
./download.sh
./build.sh
cd ..
./installpms.sh
If not, then you'll need to tear apart those scripts and do what they do.
Step 2: Start Storage
You need to start up you MySQL server and memcached. Memcached is as easy as:
memcached -d
MySQL will depend on the system and how you installed it.
Step 3: Config Files
You'll need to create lacuna.conf, nginx.conf, and log4perl.conf
in your Lacuna-Server/etc folder. Templates exist in the etc
directory.
Step 4: Initialize Database
Log into mysql and create a database:
mysql -uroot -pyourrootpassword
create database lacuna;
grant all privileges on lacuna.* to lacuna@localhost identified by 'somepassword';
flush privileges;
exit;
cd bin/setup
perl init_lacuna.pl
perl generate_captcha.pl
Step 5: Start The Server
To start the lacuna server just type:
cd bin
./startdev.sh
Now in another terminal you can start issuing commands to the server.
Step 6: Missions (optional)
If you want to be able to do anything with missions, you'll need to check out the Lacuna-Mission repository into
/data/Lacuna-Mission