OK, solved that one. The php5-mysql package wasn’t installed. However it didn’t say “The PHP MySQL extension is needed” until I tried manually copying bb-config-sample.php to bb-config.php. Perhaps this is something to document either in docs or as a message in the installer.
Oliver