One point: if your database is on another machine, you will need to edit the advanced settings to put the host name in there. But that’s aside from this problem.
If bbPress couldn’t write the file, then it’s probably a permissions thing. So, you created the file yourself. That’s OK. But maybe it’s in the wrong spot or has the wrong information in it?