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