This material is work-in-progress ...
Do not follow instructions here until this notice is removed.
Flyspray supports only MySQL and PostgreSQL. Here we cover MySQL installation, but the steps are basically the same with PostgreSQL.
Install Database support
Notice that even though flyspray-mysql package is available, if you install it Flyspray will report that the function library is deprecated, that is quite annoying.
Is better to use mysqli package.
Now before we continue we need to create the database.
If you need mysql client, you can install it like this:
You can of course also use a tool like phpmyadmin to create the database and setup the user.
Now our database is ready, we need to install and configure Lighttpd, with PHP support.
Now, you should enable PHP/FastCGI support modifying Lighttpd configuration.
You can find it in /etc/lighttpd.
... include "mod_fastcgi.conf" ...
If your server does not run, you can find information in /var/log/lighttpd. If that does not provide a clue you can also run Lighttpd in foreground. It should display some more debug information.
Now that everything is ready, you need to make Flyspray visible to the webserver. For doing that, create a symlink from /usr/share/webapps/flyspray (that is the default location where flyspray is installed) to /var/www/localhost/htdocs. This is the document root directory of lighttpd server. If you use another webserver, check what is the document root and put the symlink there.
Flyspray needs permission to write on flyspray.conf.php that is in the root directory.
Open your browser to http://$FLYSPRAY_SERVER/flyspray and follow the instruction.