I think this problem is because
when bbpress try to decide wheter this instance has been installed, it use one term, it just check whether the file bb-config.php exists, and the check passed, but when it try to get data from the db, it failed, the script then redirect the user to the install page.