I have solved it, it appears. I can now update and download software etc and it’s no longer giving me the filesystem full alert.
It’s still showing me that white screen error when I restart the server though.
the config.php file is not getting blanked out though.
EDIT: I restarted again and now it’s updating correctly. Consider this issue solved. Though I’m going to log a bug on the github about this because it is a reoccuring problem that probably should have some kind of check to prevent right? I mean, I’m not a great dev, I’m more of a designer who knows enough code to get himself in trouble but this has happened to me multiple times and it happened to other people, it seems like something that should have a check.