3
3
Installation
4
4
============
5
5
6
- :author: Jan Kneschke
7
- :Date: $Date: $
8
- :Revision: $Revision: $
9
6
10
- Installation
11
- ------------
7
+ Quick Installation
8
+ ------------------
12
9
13
- Get the source from
10
+ Get lighttpd source from
14
11
15
12
https://www.lighttpd.net/download/
16
13
17
14
unpack it by ::
18
15
19
- $ gzip -cd lighttpd-1.x.x .tar.gz | tar xf -
16
+ $ tar xvJf lighttpd-1.4.xx .tar.xz
20
17
21
18
compile and install it with ::
22
19
23
- $ cd lighttpd-1.x.x
24
- $ ./configure
20
+ $ cd lighttpd-1.4.xx
21
+ $ ./configure -C
25
22
$ make
26
23
$ su -
27
24
# make install
@@ -31,6 +28,140 @@ take look at the configfile in ./doc/lighttpd.conf,
31
28
make your own copy of that file and modify it for your needs.
32
29
33
30
31
+ Online documentation
32
+ --------------------
33
+ https://redmine.lighttpd.net/projects/lighttpd/wiki/Devel
34
+ https://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion
35
+ https://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
36
+
37
+
38
+ Custom Installation
39
+ -------------------
40
+
41
+ required packages ::
42
+
43
+ autoconf
44
+ automake
45
+ libtool
46
+ m4
47
+ pcre
48
+ pcre-devel
49
+ pkg-config
50
+
51
+ optional packages for optional features ::
52
+
53
+ bzip2-devel # bzip2 ./configure --with-bzip2
54
+ bzip2-libs
55
+ cyrus-sasl # SASL ./configure --with-sasl
56
+ cyrus-sasl-devel
57
+ gamin # FAM ./configure --with-fam
58
+ gamin-devel
59
+ gdbm # GDBM ./configure --with-gdbm
60
+ gdbm-devel
61
+ GeoIP-devel # GeoIP ./configure --with-geoip
62
+ GeoIP
63
+ gnutls # GnuTLS ./configure --with-gnutls
64
+ gnutls-devel
65
+ krb5-devel # Kerberos5 ./configure --with-krb5
66
+ krb5-libs
67
+ libattr # xattr ./configure --with-attr
68
+ libattr-devel
69
+ libbrotli # brotli ./configure --with-brotli
70
+ brotli-devel
71
+ libdbi # DBI ./configure --with-dbi
72
+ libdbi-devel
73
+ libdbi-dbd-mysql
74
+ libdbi-dbd-pgsql
75
+ libdbi-dbd-sqlite
76
+ libmaxminddb # MaxMindDB ./configure --with-maxminddb
77
+ libmaxminddb-devel
78
+ libmemcached-devel # Memcached ./configure --with-memcache
79
+ libmemcached-libs
80
+ libpq # Postgresql ./configure --with-pgsql
81
+ libpq-devel
82
+ libunwind # libunwind ./configure --with-libunwind
83
+ libuuid # libuuid ./configure --with-webdav-locks
84
+ libuuid-devel
85
+ libxml2 # libxml2 ./configure --with-webdav-props
86
+ libxml2-devel
87
+ libxml2-static
88
+ lua # Lua ./configure --with-lua
89
+ lua-devel
90
+ mariadb-devel # MariaDB ./configure --with-mysql
91
+ mariadb-libs
92
+ mbedtls # mbedTLS ./configure --with-mbedtls
93
+ mbedtls-devel
94
+ nettle # Nettle ./configure --with-nettle
95
+ nettle-devel
96
+ nss # NSS ./configure --with-nss
97
+ nss-devel
98
+ openldap # OpenLDAP ./configure --with-ldap
99
+ openldap-devel
100
+ openssl-devel # OpenSSL ./configure --with-openssl
101
+ openssl-libs
102
+ pam # PAM ./configure --with-pam
103
+ pam-devel
104
+ pcre # PCRE ./configure --with-pcre # (default)
105
+ pcre-devel
106
+ sqlite # SQLite ./configure --with-webdav-props
107
+ sqlite-devel
108
+ valgrind # valgrind ./configure --with-valgrind
109
+ valgrind-devel
110
+ zlib # zlib ./configure --with-zlib
111
+ zlib-devel
112
+
113
+ more options: ./configure --help
114
+
115
+ re-run ./configure after installing packages
116
+
117
+ compile and install it with ::
118
+
119
+ $ cd lighttpd-1.4.xx
120
+ $ ./autogen.sh # detect/use newer versions of autotools (if present)
121
+ $ ./configure -C # add --with-xxxxx custom flags
122
+ $ make
123
+ # sudo make install
124
+
125
+
126
+ Running Tests
127
+ -------------
128
+
129
+ required packages to run test harness ::
130
+
131
+ (e.g. on Fedora 22, sudo dnf install ...)
132
+ (e.g. on Arch Linux, sudo pacman ... (with lowercased package names))
133
+
134
+ perl-CGI
135
+ perl-Digest
136
+ perl-Digest-MD5
137
+ perl-Encode-Locale
138
+ perl-HTML-Entities-Interpolate
139
+ perl-HTML-Parser
140
+ perl-HTML-Tagset
141
+ perl-HTTP-Date
142
+ perl-HTTP-Message
143
+ perl-IO-HTML
144
+ perl-LWP-MediaTypes
145
+ perl-Tie-Function
146
+ perl-TimeDate
147
+ php
148
+ php-cgi
149
+
150
+ optional packages to run test harness ::
151
+
152
+ fcgi-devel
153
+
154
+ $ cd tests/ && make fcgi-auth fcgi-responder
155
+
156
+ run test harness
157
+
158
+ $ make check
159
+
160
+ run test harness with additional FastCGI tests (requires fcgi-devel package)
161
+
162
+ $ cd tests/ && make check-am
163
+
164
+
34
165
static build using SCons
35
166
------------------------
36
167
0 commit comments