Debian Codegraph @

doc/sources/admin/installtarball.rst

raw
1 Installation from the tarball
2 =============================
3
4 Get the tarball
5 ---------------
6
7 Get the tarball from `download page <https://lemonldap-ng.org/download.html>`__ and
8 its associated GPG signature file.
9
10 Signature check
11 ---------------
12
13 Download the `Security GPG key <https://lemonldap-ng.org/security/GPG-KEY-LLNG-SECURITY.asc>`__ and import it:
14
15 ::
16
17 gpg --import GPG-KEY-LLNG-SECURITY.asc
18
19
20 Then verify the signature of the tarball:
21
22 ::
23
24 gpg --verify lemonldap-ng-*.tar.gz.sig lemonldap-ng-*.tar.gz
25
26 Extraction
27 ----------
28
29 Just run the tar command:
30
31 ::
32
33 tar zxvf lemonldap-ng-*.tar.gz
34
35 Installation
36 ------------
37
38 First check and install the :doc:`prerequisites<prereq>`.
39
40 For full install:
41
42 ::
43
44 cd lemonldap-ng-*
45 make configure
46 make
47 make test
48 sudo make install PROD=yes
49
50
51 .. note::
52
53 ``PROD=yes`` makes web interface use minified versions of CSS and
54 JS files.
55
56 You can modify location of default storage configuration file in
57 configure target:
58
59 ::
60
61 make configure STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini
62
63 You can choose other Makefile targets:
64
65 - Perl libraries install :
66
67 - install_libs (all Perl libraries)
68 - install_portal_libs
69 - install_manager_libs
70 - install_handler_libs
71
72 - Binaries install :
73
74 - install_bin (/usr/local/lemonldap-ng/bin)
75
76 - FastCGI server install (required for Nginx)
77
78 - install_fastcgi_server (/usr/local/lemonldap-ng/sbin)
79
80 - Web sites install :
81
82 - install_site (all sites including install_doc_site)
83 - install_portal_site (/usr/local/lemonldap-ng/htdocs/portal)
84 - install_manager_site (/usr/local/lemonldap-ng/htdocs/manager)
85 - install_handler_site (/usr/local/lemonldap-ng/handler)
86
87 - Documentation install :
88
89 - install_doc_site (/usr/local/lemonldap-ng/htdocs/doc)
90 - install_examples_site (/usr/local/lemonldap-ng/examples)
91
92 You can also pass parameters to the make install command, with this
93 syntax:
94
95 ::
96
97 sudo make install PARAM=VALUE PARAM=VALUE ...
98
99 Available parameters are:
100
101 - **ERASECONFIG**: set to 0 if you want to keep your configuration
102 files (default: 1)
103 - **DESTDIR**: only for packaging, install the product in a jailroot
104 (default: "")
105 - **PREFIX**: installation directory (default: /usr/local)
106 - **CRONDIR**: Cronfile directory (default:
107 $PREFIX/etc/lemonldap-ng/cron.d)
108 - **APACHEUSER**: user running Apache
109 - **APACHEGROUP**: group running Apache
110 - **DNSDOMAIN**: Main DNS domain (default: example.com)
111 - **APACHEVERSION**: Apache major version (default: 2)
112 - **VHOSTLISTEN**: how listen parameter is configured for virtual hosts
113 in Apache (default: \*:80)
114 - **PROD**: use minified JS and CSS files
115 - **USEDEBIANLIBS**: use Debian packaged JS and CSS files (**Note
116 that this options isn't yet usable** since Debian provides a too
117 old AngularJS for now: LLNG manager needs at least version 1.4.0)
118 - **USEEXTERNALLIBS**: use files from public CDN
119 - **STORAGECONFFILE**: *make configure* target only. Location of default
120 storage configuration file (default:
121 /usr/local/lemonldap-ng/etc/lemonldap-ng.ini)
122
123
124 .. tip::
125
126 For Debian/Ubuntu with Apache2, you can use:
127
128 ::
129
130 make debian-install-for-apache
131 make ubuntu-install-for-apache
132
133 And with Nginx:
134
135 ::
136
137 make debian-install-for-nginx
138 make ubuntu-install-for-nginx
139
140 See also :doc:`Debian/Ubuntu installation documentation<installdeb>`.
141
142
143 Install cron jobs
144 -----------------
145
146 LL::NG use cron jobs (or systemd timers) to:
147
148 - purge old sessions
149 - clean Handler cache
150
151 To install them on system:
152
153 ::
154
155 sudo ln -s /usr/local/lemonldap-ng/etc/cron.d/* /etc/cron.d/
156
157 or install .timers files in systemd directory (/lib/systemd/system)
158
159 DNS
160 ---
161
162 Configure your DNS server to resolve names with your server IP:
163
164 - auth.<your domain>: main portal, must be public
165 - manager.<your domain>: manager, only for adminsitrators
166 - test1.<your domain>, test2.<your domain>: sample applications
167
168 Follow the :ref:`next steps<start-configuration>`.