Keywords: Moodle - Google Cloud Platform - Technical issue - Permissions
I'm currently trying to use Google Cloud resources to connect with Moodle.
My actual configuration includes:
1) 1 Linux Debian 9 Distribution w/ a LAPP stack minus PostgreSQL (it will be on another service outside)
2) 1 Cloud SQL Instance (PostgreSQL)
3) 1 bucket of Google Cloud Storage
All of these in the same region to avoid high latency.
After issues trying to setup the Goole Cloud Storage as a mount point for the moodle data file system unsuccesfully, that i hope you could help me to workaround.
1) Has anyone tried this setup before? (gfuse for mount to serve as a moodledata filesystem) on Google Cloud? or something alike? I have used it for additional repositories, successfully, but when i try to use it as the var/www/moodledata it just doesn't work.
The gfuse instruction i tried allowed me to do the mounting of the GCP Bucket as a disk mounted (supposedly done right) is:
$ mount -t gcsfuse -o rw,allow_other,nonempty,file_mode=777,dir_mode=777 moodle-nsyp /opt/bitnami/apache2/htdocs/moodledata
but while installing moodle i got the message error:
Moodle error - Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting.
I also tried:
$ chown www-data:www-data -R /var/www
$ chown www-data:www-data /var/www/moodledata
$ chmod -R 777 /var/www
$ chmod -R 777 /var/www/moodledata (would change it after installing moodle)
So what could else could be the problem?
Also: Is there any other alternative or plugin that is supported by Moodle?
I have seen a few plugins for AWS / Azure so i hope someone out there can point me to a Google Cloud based solution.
Thanks in advance,