The Lighttpd module is built from source, the following sections outline how to setup dependencies, build the module and configure it.
See OS Specific Installation for how to install
libfmp4 and it’s
To make sure you have all dependencies (configuration files, startup scripts) installed it’s best to first install Lighttpd and a few dependencies via ‘apt-get’.
#!/bin/bash sudo apt-get install lighttpd libbz2-dev \ libglib2.0-dev \ libsqlite3-dev
Download the Lightpd webserver module and unpack the tarball:
#!/bin/bash tar -zxvf lighttpd-1.x.y_mod_smooth_streaming-1.x.y.tar.gz
Run configure in the Lighttpd directory followed by make and make install:
cd ~/lighttpd-1.x.y ./configure make sudo make install
Prior to calling make you should setup the development environment for your distribution:
The CentOS build environment is setup as follows:
#!/bin/bash yum groupinstall "Development Tools" yum install zlib-devel.x86_64 \ glib2-devel.x86_64 \ bzip2-devel.x86_64
Next to the build environment, the headers for libfmp4 need to be installed. These can be found in the so-called ‘devel’ package from the download page:
#!/bin/bash rpm -i mp4split-devel-x.y.z-1.x86_64.rpm
The Ubuntu build environment is setup as follows:
#!/bin/bash sudo apt-get install build-essential \ g++ \ make \ autoconf \ automake \ libtool
Edit the configuration file, /etc/lighttpd/lighttpd.conf, so that file requests ending in ‘.ism’ are handled by the module:
server.modules = ( ..., "mod_smooth_streaming", ... ) smooth-streaming.extensions = ( ".ism" )
Make sure that DAEMON in your startup script, /etc/init.d/lighttpd, is set to point to the locally build version.
Please install your License Key now, otherwise streaming will not work!
sudo /etc/init.d/lighttpd start
After restarting your web server, you can continue with Verifying Your Setup.