lighttpd 1.4.x https://www.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

79 lines
2.3 KiB

  1. ============
  2. Installation
  3. ============
  4. :author: Jan Kneschke
  5. :Date: $Date: $
  6. :Revision: $Revision: $
  7. Installation
  8. ------------
  9. Get the source from
  10. https://www.lighttpd.net/download/
  11. unpack it by ::
  12. $ gzip -cd lighttpd-1.x.x.tar.gz | tar xf -
  13. compile and install it with ::
  14. $ cd lighttpd-1.x.x
  15. $ ./configure
  16. $ make
  17. $ su -
  18. # make install
  19. # exit
  20. take look at the configfile in ./doc/lighttpd.conf,
  21. make your own copy of that file and modify it for your needs.
  22. static build using SCons
  23. ------------------------
  24. $ scons -j 4 build_static=1 build_dynamic=0 prefix=/custom/inst/path install
  25. build_dynamic is enabled by default in SConstruct and needs to be disabled for
  26. the static build. See also the BoolVariable() settings in SConstruct for other
  27. configurable variables that might be set in a customized build. build_static=1
  28. can be replaced with build_fullstatic=1 to perform lighttpd static build with
  29. modules *and* to link statically against external dependencies.
  30. static build using make
  31. -----------------------
  32. * edit src/Makefile.am and, in the section under 'if LIGHTTPD_STATIC',
  33. update lighttpd_SOURCES with each module to be included in the static build
  34. * create src/plugin-static.h with list of modules as PLUGIN_INIT(mod_foo)
  35. for each module 'mod_foo' to be included in the static build
  36. $ LIGHTTPD_STATIC=yes ./configure -C --enable-static=yes
  37. $ make
  38. $ sudo make install
  39. build using CMake and Xcode on Mac OS X with MacPorts
  40. -----------------------------------------------------
  41. * upgrade to latest Mac OS X
  42. * install Xcode from Apple Store (requires latest Mac OS X)
  43. * install MacPorts from https://www.macports.org/install.php
  44. $ xcodebuild --license
  45. $ xcode-select --install
  46. $ sudo port selfupdate
  47. $ sudo port install autoconf automake cmake libtool m4 pcre pkgconfig zlib bzip2 openssl libxml sqlite3 openldap fcgi p5-cgi libunwind libunwind-headers mysql57 libev gdbm openldap ossp-uuid
  48. # Note: some of the above require more fiddling to configure with CMake...
  49. # cmake and build
  50. # (all -DWITH_... flags below are optional)
  51. $ cmake -Wno-dev -DWITH_OPENSSL=1 -DWITH_LUA=1 -DWITH_ZLIB=1 -DWITH_BZIP2=1 -DWITH_WEBDAV_PROPS=1 .
  52. $ make -j 4
  53. $ make test
  54. # Note: many tests fail if not built with openssl
  55. # lighttpd will not start up with tests/lighttpd.conf
  56. # (mod_secdownload fails to configure hmac-sha1 and hmac-sha256)