1 2============ 3Installation 4============ 5 6:author: Jan Kneschke 7:Date: $Date: $ 8:Revision: $Revision: $ 9 10Installation 11------------ 12 13Get the source from 14 15http://www.lighttpd.net/download/ 16 17unpack it by :: 18 19 $ gzip -cd lighttpd-1.x.x.tar.gz | tar xf - 20 21compile and install it with :: 22 23 $ cd lighttpd-1.x.x 24 $ ./configure 25 $ make 26 $ su - 27 # make install 28 # exit 29 30take look at the configfile in ./doc/lighttpd.conf, 31make your own copy of that file and modify it for your needs. 32 33 34static build using SCons 35------------------------ 36 37 $ scons -j 4 build_static=1 build_dynamic=0 prefix=/custom/inst/path install 38 39build_dynamic is enabled by default in SConstruct and needs to be disabled for 40the static build. See also the BoolVariable() settings in SConstruct for other 41configurable variables that might be set in a customized build. build_static=1 42can be replaced with build_fullstatic=1 to perform lighttpd static build with 43modules *and* to link statically against external dependencies. 44 45 46static build using make 47----------------------- 48 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 53 54 $ LIGHTTPD_STATIC=yes ./configure -C --enable-static=yes 55 $ make 56 $ sudo make install 57