Installation Ubuntu 1404 2 LTS » Historie » Version 5
G. Richardson, 03.07.2015 08:57
1 | 1 | G. Richardson | h1. Installation Ubuntu 14.04.2 LTS |
---|---|---|---|
2 | |||
3 | * kivitendo 3.2.1 |
||
4 | * Postgres 9.3 |
||
5 | * Apache 2.4.7 |
||
6 | |||
7 | 4 | G. Richardson | Basierend auf Anleitung |
8 | 1 | G. Richardson | https://www.kivitendo.de/doc/html/ch02s02.html |
9 | |||
10 | 5 | G. Richardson | Dies ist eine Minimalinstallation, und geht davon aus, daß außer kivitendo sonst keine Dienste auf dem Server laufen, so daß es Server-intern keine Schutzmechanismen (z.B. Datenbankpasswort, eigener Datenbankbenutzer) für die Datenbank gibt. |
11 | |||
12 | 1 | G. Richardson | h2. Ubuntu vorbereiten |
13 | |||
14 | > sudo su - |
||
15 | > apt-get install apache2 libarchive-zip-perl libclone-perl \ |
||
16 | > libconfig-std-perl libdatetime-perl libdbd-pg-perl libdbi-perl \ |
||
17 | > libemail-address-perl libemail-mime-perl libfcgi-perl libjson-perl \ |
||
18 | > liblist-moreutils-perl libnet-smtp-ssl-perl libnet-sslglue-perl \ |
||
19 | > libparams-validate-perl libpdf-api2-perl librose-db-object-perl \ |
||
20 | > librose-db-perl librose-object-perl libsort-naturally-perl \ |
||
21 | > libstring-shellquote-perl libtemplate-perl libtext-csv-xs-perl \ |
||
22 | > libtext-iconv-perl liburi-perl libxml-writer-perl libyaml-perl \ |
||
23 | > libimage-info-perl libgd-gd2-perl \ |
||
24 | > libfile-copy-recursive-perl postgresql |
||
25 | > apt-get install build-essential |
||
26 | > cpan HTML::Restrict |
||
27 | |||
28 | h2. kivitendo per git installieren |
||
29 | |||
30 | > apt-get install git |
||
31 | |||
32 | > cd /usr/local/src/ |
||
33 | > git clone https://github.com/kivitendo/kivitendo-erp.git |
||
34 | > cd kivitendo-erp/ |
||
35 | > git checkout release-3.2.1 |
||
36 | > ./scripts/installation_check.pl |
||
37 | |||
38 | > mkdir webdav |
||
39 | > chown -R www-data users spool webdav |
||
40 | > chown www-data templates users |
||
41 | > cp config/kivitendo.conf.default config/kivitendo.conf |
||
42 | > apt-get install vim |
||
43 | > vim config/kivitendo.conf |
||
44 | <pre> |
||
45 | [authentication] |
||
46 | admin_password = admin123 |
||
47 | |||
48 | [authentication/database] |
||
49 | host = 127.0.0.1 |
||
50 | port = 5432 |
||
51 | db = kivitendo_auth |
||
52 | user = postgres |
||
53 | password = |
||
54 | |||
55 | </pre> |
||
56 | |||
57 | h2. Postgres konfigurieren |
||
58 | 2 | G. Richardson | |
59 | Datenbank konfigurieren, passwortloser Zugang für lokalen Zugriff |
||
60 | 1 | G. Richardson | |
61 | > vim /etc/postgresql/9.3/main/pg_hba.conf |
||
62 | <pre> |
||
63 | local all postgres peer |
||
64 | local all all peer |
||
65 | host all all 127.0.0.1/32 trust |
||
66 | host all all ::1/128 reject |
||
67 | </pre> |
||
68 | |||
69 | > service postgres reload |
||
70 | |||
71 | Zugriff testen: |
||
72 | > psql -U postgres -h 127.0.0.1 -p 5432 |
||
73 | |||
74 | h2. Apache konfigurieren |
||
75 | > vim /etc/apache2/sites-available/default-ssl.conf |
||
76 | <pre> |
||
77 | AddHandler fcgid-script .fpl |
||
78 | AliasMatch ^/kivitendo-erp/[^/]+\.pl /usr/local/src/kivitendo-erp/dispatcher.fpl |
||
79 | Alias /kivitendo-erp/ /usr/local/src/kivitendo-erp/ |
||
80 | FcgidMaxRequestLen 10485760 |
||
81 | |||
82 | <Directory /usr/local/src/kivitendo-erp> |
||
83 | AllowOverride All |
||
84 | Options ExecCGI Includes FollowSymlinks |
||
85 | Require all granted |
||
86 | </Directory> |
||
87 | |||
88 | <DirectoryMatch /usr/local/src/kivitendo-erp/users> |
||
89 | Order Deny,Allow |
||
90 | Deny from All |
||
91 | </DirectoryMatch> |
||
92 | </pre> |
||
93 | |||
94 | > apt-get install libapache2-mod-fcgid |
||
95 | > a2enmod ssl |
||
96 | > a2enmod fcgid |
||
97 | > a2ensite default-ssl |
||
98 | > service apache2 reload |
||
99 | |||
100 | h2. kivitendo starten |
||
101 | |||
102 | https://localhost/kivitendo-erp/ |
||
103 | |||
104 | |||
105 | h2. Backup |
||
106 | |||
107 | 3 | G. Richardson | <pre> |
108 | #!/bin/bash |
||
109 | 1 | G. Richardson | for i in datenbankname kivitendo_auth; |
110 | do pg_dump -U postgres -h 127.0.0.1 $i > /backup/kivitendo/`date +%A`-$i.sql |
||
111 | done |
||
112 | 3 | G. Richardson | pg_dumpall -U postgres -h 127.0.0.1 > /backup/kivitendo/`date +%A`-dumpall.sql |
113 | </pre> |