Keywords: Moodle - Microsoft Azure - Technical issue - Other
I have mounted a azure multi-tier bitnami moodle solution, all right, but from time to time the message appears:
Invalid permissions have been detected in the $ CFG-> dataroot directory, the administrator has to fix the permissions.
And I have to enter the SSH console and run the command as root:
chmod -R 777 / bitnami / moodle / moodledata
In this way it is solved, but after a few days or weeks, it happens again;
I am looking for a definitive solution.
I await your comments.
The team of MS Azure Linux, through Marlon Rojas, already analyzed the virtual machine, the execution folders of the portal and found the following:
"Some CHMODs executed by php commands inside the folder /opt/bitnami/php/bin/php and pointing to this Path /bitnami/moodle/moodledata/cache/cachestore_file/default_application/core_config/e3b-cache/e3b67e927719911d396076ab52243f2876c62d58.cache and what generates is a CHMOD 664 which seems strange to me because if it is generated the same Moodle is contradicted by the workaround exposed by the Bitnami team and that actually works but then reverses itself and that this may be making it cyclical . "
Previously MARCOS, from the bitnami team, had advised me to apply the following command:
Hi @enco5x, The /bitnami/moodle/moodledata directory should belong to bitnami:daemon and have 775 permissions, please run this command:
sudo chown -R bitnami:daemon /bitnami/moodle/moodledata
sudo chmod -R 775 /bitnami/moodle/moodledata
After changing those permissions, you should not get the error anymore. If you do, could you check which file inside "/bitnami/moodle/moodledata" does not have those permissions/ownership (775 and belonging to bitnami:daemon respectively) and let us know?
But it seems that this does not agree with what the CRON.PHP has programmed internally,
for that reason I want to send you the file CRON.PHP so that experts review it and tell me if that's the problem.
I thank you in advance.