James, are you using a Synology NAS? You haven't said it, so this may be way off the mark, but I understand that setup, CentOS and NGinx with the option of MariaDB, is what they use. If so, try downloading the latest DSM update. I had a similar issue with a DSM update and Moodle, or I think that's what it was, and a new DMS update resolved it. Couldn't find the problem, neither Synology forums or Stackoverflow were of any assistance.