Moodle Open Source Learning Platform
-
replied to robi on last edited by A Former User
@robi Looks like this is possible in core as of Moodle 3.6. Current latest is 3.9.2+.
Source: https://moodle.com/news/nextcloud-integration-in-moodle-3-6-open-source-supporting-open-source/
Looks like its only a repository, meaning it integrates with the file picker similar to local files and google drive.
-
@atrilahiji Yes, it will help if you can remove all the non-essential code from the app. I think because you started from the LAMP stack, there's lots of extra stuff:
- Can remove the RPAF thing - https://git.cloudron.io/AtriLahiji/moodle/-/blob/master/Dockerfile#L34 (the whole section can be removed till line 44)
- Remove phpMyAdmin (like 46-49)
- Remove cron (line 51-54)
- Remove iconcube (line 56-64)
- You can even remove supervisor altogether and just straight run apache
Same goes for start.sh.
- Remove cron/phpmyadmin/credentials stuff. Line 16-57
You can look at https://git.cloudron.io/cloudron/directus-app for inspiration. Let us know if you need help!
-
I'm really looking forward to Moodle being available, many thanks for getting this going @atrilahiji !
And, given your day job/ links to Moodle perhaps you'd be interested in helping to package MoodleNet too?!?
-
replied to girish on last edited by
@girish For sure, I can get that sorted. Moodle makes use of cron tasks so I may need to leave that bit in.
@jdaviescoates I can take a look at it next.
-
@atrilahiji For cron, use the scheduler addon. Like this https://git.cloudron.io/cloudron/snipeit-app/-/blob/master/CloudronManifest.json#L12 . This way you don't need all the supervisor stuff and also dont need to run a separate cron process in the app itself.
-
Moodle needs to write a config.php file inside /app/code and a moodledata directory during its install. Looks like its getting tripped up on that.
-
replied to A Former User on last edited by
@atrilahiji said in Moodle Open Source Learning Platform:
Moodle needs to write a config.php file inside /app/code and a moodledata directory during its install. Looks like its getting tripped up on that.
You can symlink the file to /app/data so it can.
-
replied to A Former User on last edited by
@atrilahiji is that an ownership or permission issue?
-
you should see more something like this from WP:
lrwxrwxrwx 1 www-data www-data 23 Sep 13 16:42 wp-config.php -> /app/data/wp-config.php
To do this you can do:
from /app/codemv config.php /app/data/moodledata
then
ln -s /app/data/moodledata/config.php /app/code/config.php
-
Fixed the read only issues. We're back to good ol' ERR_TOO_MANY_REDIRECTS issue. I imagine its an http -> https -> http -> ... issue. Whatever it is its definitely at the reverse proxy level.
Anyways @girish I have a MR when you have time.
-
@girish This ERR_TOO_MANY_REDIRECTS issue has me stumped. Tried a few things tonight with no luck. Any ideas?