[mod_ssi] more flexible quoting (fixes #1768)
[lighttpd.git] / INSTALL
blobc0899a8a7c2729a073f7f7178e2b6d63d6e3e995
2 ============
3 Installation
4 ============
6 :author: Jan Kneschke
7 :Date: $Date: $
8 :Revision: $Revision: $
10 Installation
11 ------------
13 Get the source from
15 http://www.lighttpd.net/download/
17 unpack it by ::
19   $ gzip -cd lighttpd-1.x.x.tar.gz | tar xf -
21 compile and install it with ::
23   $ cd lighttpd-1.x.x
24   $ ./configure
25   $ make
26   $ su -
27   # make install
28   # exit
30 take look at the configfile in ./doc/lighttpd.conf,
31 make your own copy of that file and modify it for your needs.
34 static build using SCons
35 ------------------------
37   $ scons -j 4 build_static=1 build_dynamic=0 prefix=/custom/inst/path install
39 build_dynamic is enabled by default in SConstruct and needs to be disabled for
40 the static build.  See also the BoolVariable() settings in SConstruct for other
41 configurable variables that might be set in a customized build.  build_static=1
42 can be replaced with build_fullstatic=1 to perform lighttpd static build with
43 modules *and* to link statically against external dependencies.
46 static build using make
47 -----------------------
49 * edit src/Makefile.am and, in the section under 'if LIGHTTPD_STATIC',
50   update lighttpd_SOURCES with each module to be included in the static build
51 * create src/plugin-static.h with list of modules as PLUGIN_INIT(mod_foo)
52   for each module 'mod_foo' to be included in the static build
54   $ LIGHTTPD_STATIC=yes ./configure -C --enable-static=yes
55   $ make
56   $ sudo make install