
## lighttpd

First make sure that you have the latest version of intelmq-manager.
Then install lighttpd:

```
apt-get install lighttpd
```

### PHP

Next, install php in fast-cgi mode:
(taken from the manual at: http://www.betamaster.us/blog/?p=911)

```
apt-get install php5-cgi
```

Enable php5 fastcgi:

```
/usr/sbin/lighty-enable-mod fastcgi
/usr/sbin/lighty-enable-mod fastcgi-php
service lighttpd restart
```

On Debian jessie, the config file for fastcgi on lighttpd looks like this:

```
cat /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
# -*- depends: fastcgi -*-
# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server += ( ".php" =>
	((
		"bin-path" => "/usr/bin/php-cgi",
		#"bin-path" => "/usr/sbin/php5-fpm",
		"socket" => "/var/run/lighttpd/php.socket",
		#"socket" => "/run/php5-fpm.sock",
		"max-procs" => 1,
		"bin-environment" => (
			"PHP_FCGI_CHILDREN" => "4",
			"PHP_FCGI_MAX_REQUESTS" => "10000"
		),
		"bin-copy-environment" => (
			"PATH", "SHELL", "USER"
		),
		"broken-scriptfilename" => "enable"
	))
)
```

