-
Notifications
You must be signed in to change notification settings - Fork 7
/
install.txt
99 lines (72 loc) · 2.53 KB
/
install.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
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
INSTALLATION OPTIONS OF ExpertBilling 1.5:
- Clean setup
- Update
- Upgrade from v.1.4.1
NOTE: Upgrade from early versions not possible!
INSTALLATION STEPS:
--------------
CLEAN INSTALL:
--------------
1) In the console execute:
$ sudo -s
2) Place downloaded archive in /opt/ directory and execute following commands:
# cd /opt/
# tar -xvzf <name of the downloaded archive> fabfile.py install.txt
3) Install PostgreSQL (9.1):
# apt-get update
# apt-get install fabric postgresql-9.1 postgresql-contrib-9.1 postgresql-server-dev-9.1
4) Create EBS root directory:
# mkdir /opt/ebs
5) Create database and database user. NOTE: required password: ebspassword
# su postgres
$ createuser -P -s ebs
$ createdb -O ebs ebs
$ exit
$ exit
6) Run clean setup EBS 1.5 with root privileges from the /opt/ directory:
# fab deploy:<path of the ebs archive>
POST-INSTALLATION STEPS:
6.1) Open file /opt/ebs/web/ebscab/settings_local.py and override values from /opt/ebs/web/ebscab/settings.py
NOTE: This file will not be eraced updated processess
6.2) After configure web-cabinet:
# /etc/init.d/apache2 reload
6.3) Insert ip-address of your server in web-browser and log-in in EBS 1.5 web-cabinet with default username/password.
NOTE: admin/admin
----------------------
UPDATE (INSIDE v.1.5):
----------------------
1) Place downloaded archive in /opt/ directory and execute following commands:
# cd /opt/
# tar -xvzf <path of the EBS archive> fabfile.py install.txt
# fab upgrade:<path of the EBS archive>
-----------------------
UPGRADE (FROM v.1.4.1):
-----------------------
1) Place downloaded archive in /opt/ directory and execute following commands:
# cd /opt/
# tar -xvzf <path of the EBS archive> fabfile.py install.txt
2) Install PostgreSQL (9.1):
# apt-get update
# apt-get install postgresql-9.1 postgresql-contrib-9.1
3) Backup database:
# su postgres
# pg_dump ebs >/tmp/ebs.dump
# exit
# cp /tmp/ebs.dump /opt/ebs.dump
4) Remove PostgreSQL 8.4:
# apt-get remove postgresql-8.4
5) Configure PostgreSQL (9.1) for starting on 5432 port:
# nano /etc/postgres/9.1/main/postgresql.conf
6) Restart PostgreSQL (9.1):
# /etc/init.d/postgresql restart
7) Create database "ebs" with user "ebs":
# su postgres
$ createuser -s -P ebs
$ createdb -O ebs ebs
$ exit
8) Restore backuped database:
# su postgres
$ psql ebs -f /opt/ebs.dump
9) Upgrade:
# fab upgrade_14:<path of the EBS archive>
CAUTION: This is not final version. About finded bugs, errors - please report on our forum: http://forum.expertbilling.ru/