generally speaking the only time that the config file is touched is when you originally install vB. it was possibly a problem with your host, but I really couldn't be sure about it.
The config.php file was the correct one, but it had shifted all onto one line hence the problems. Reformating it back into the correct layout solved the problem.