Backup or take note of your settings and wipe and install 5 from scratch, they must have an issue with the upgrade, it's either a wrong version of that file or a permission issue. You can edit the file manually in vim/nano and see if you see any code that looks weird, or check the permissions