Ticket #63321 Check that both the config file and settings directory is writable.
Ticket #63311 The error message had the wrong file name when the config file could not be written.
And updated this.