Were you able to solve the problem?
You say $CFG->dataroot has permissions 755. Who is the owner, which group?
What is the owner and group of the Apache process?
Security and privacy
Moodle data directory files being deleted
Denne diskusjonen har blitt stengt, og du kan derfor ikke svare i den lengre.