123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- ============
- Installation
- ============
- Quick Installation
- Get lighttpd source from
- https://www.lighttpd.net/download/
- unpack it by ::
- $ tar xvJf lighttpd-1.4.xx.tar.xz
- compile and install it with ::
- $ cd lighttpd-1.4.xx
- $ ./autogen.sh
- $ ./configure -C
- $ make check
- $ /usr/bin/sudo make install
- take look at the configfile in ./doc/lighttpd.conf,
- make your own copy of that file and modify it for your needs.
- Online documentation
- https://redmine.lighttpd.net/projects/lighttpd/wiki/Devel
- https://redmine.lighttpd.net/projects/lighttpd/wiki/DevelSubversion
- https://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
- Custom Installation
- required packages ::
- autoconf
- automake
- libtool
- m4
- pkg-config
- recommended additional packages ::
- pcre2
- pcre2-devel
- lua
- lua-devel
- nettle
- nettle-devel
- optional packages for optional features ::
- bzip2-devel
- bzip2-libs
- cyrus-sasl
- cyrus-sasl-devel
- gnutls
- gnutls-devel
- krb5-devel
- krb5-libs
- libbrotli
- brotli-devel
- libdbi
- libdbi-devel
- libdbi-dbd-mysql
- libdbi-dbd-pgsql
- libdbi-dbd-sqlite
- libmaxminddb
- libmaxminddb-devel
- libpq
- libpq-devel
- libunwind-devel
- libuuid
- libuuid-devel
- libxml2
- libxml2-devel
- libxml2-static
- lua
- lua-devel
- mariadb-devel
- mariadb-libs
- mbedtls
- mbedtls-devel
- nettle
- nettle-devel
- nss
- nss-devel
- openldap
- openldap-devel
- openssl-devel
- openssl-libs
- pam
- pam-devel
- pcre
- pcre-devel
- pcre2
- pcre2-devel
- sqlite
- sqlite-devel
- valgrind
- valgrind-devel
- wolfssl
- wolfssl-devel
- zlib
- zlib-devel
- libzstd
- libzstd-devel
- more options: ./configure
- re-run ./configure after installing packages
- compile and install it with ::
- $ cd lighttpd-1.4.xx
- $ ./autogen.sh
- $ ./configure -C
- $ make
-
- Running Tests
- required packages to run test harness ::
- (e.g. on Fedora 22, sudo dnf install ...)
- (e.g. on Arch Linux, sudo pacman ... (with lowercased package names))
- perl-Digest
- perl-Digest-MD5
- perl-Encode-Locale
- perl-HTML-Entities-Interpolate
- perl-HTML-Parser
- perl-HTML-Tagset
- perl-HTTP-Date
- perl-HTTP-Message
- perl-IO-HTML
- perl-LWP-MediaTypes
- perl-Test-Harness
- perl-Test-Simple
- perl-Tie-Function
- perl-TimeDate
- run test harness
- $ make check
- static build using SCons
- $ scons -j 4 build_static=1 build_dynamic=0 prefix=/custom/inst/path install
- build_dynamic is enabled by default in SConstruct and needs to be disabled for
- the static build. See also the BoolVariable() settings in SConstruct for other
- configurable variables that might be set in a customized build. build_static=1
- can be replaced with build_fullstatic=1 to perform lighttpd static build with
- modules *and* to link statically against external dependencies.
- static build using make
- * edit src/Makefile.am and, in the section under 'if LIGHTTPD_STATIC',
- update lighttpd_SOURCES with each module to be included in the static build
- * create src/plugin-static.h with list of modules as PLUGIN_INIT(mod_foo)
- for each module 'mod_foo' to be included in the static build
- $ LIGHTTPD_STATIC=yes ./configure -C
- $ make
- $ sudo make install
- build using CMake and Xcode on Mac OS X with MacPorts
- * upgrade to latest Mac OS X
- * install Xcode from Apple Store (requires latest Mac OS X)
- * install MacPorts from https://www.macports.org/install.php
- $ xcodebuild
- $ xcode-select
- $ sudo port selfupdate
- $ sudo port install autoconf automake cmake libtool m4 pcre2 pkgconfig zlib zstd brotli openssl libxml sqlite3 openldap libunwind libunwind-headers mysql57 openldap ossp-uuid
-
-
-
- $ cmake -Wno-dev -DWITH_PCRE2=1 -DWITH_OPENSSL=1 -DWITH_LUA=1 -DWITH_ZLIB=1 -DWITH_ZSTD=1 -DWITH_BROTLI=1 -DWITH_WEBDAV_PROPS=1 .
- $ make -j 4
- $ make test
-
-
-
|