Lighttpd

Table of Contents

The Lighttpd module is built from source, the following sections outline how to setup dependencies, build the module and configure it.

Installation

Dependencies

See OS Specific Installation for how to install libfmp4 and it's dependencies.

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

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

Build

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:

CentOS

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

Ubuntu

The Ubuntu build environment is setup as follows:

#!/bin/bash

sudo apt-get install build-essential \
  g++ \
  make \
  autoconf \
  automake \
  libtool

Configuration

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.

DAEMON=/usr/local/sbin/lighttpd

Attention

Please install your License Key now, otherwise streaming will not work!

Start lighttpd:

sudo /etc/init.d/lighttpd start

After restarting your web server, you can continue with Verifying Your Setup.

Options

Option Description
smooth-streaming.usp_license_key Server directive, which is placed in lighttpd.conf (see Lighttpd License key).
smooth-streaming.extensions The file extensions the module handles (see above).