Moodle Open Source Learning Platform
-
wrote on Sep 30, 2020, 9:47 PM last edited by
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.
-
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.
wrote on Sep 30, 2020, 10:00 PM 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.
-
@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.
wrote on Sep 30, 2020, 11:10 PM last edited byI seem to get this no matter what I do. Trying to write moodledata to /app/data but it says it doesn't exist?
-
I seem to get this no matter what I do. Trying to write moodledata to /app/data but it says it doesn't exist?
wrote on Oct 1, 2020, 1:29 AM last edited by@atrilahiji is that an ownership or permission issue?
-
wrote on Oct 1, 2020, 2:00 AM last edited by A Former User Oct 1, 2020, 5:52 AM
@robi could be. I’ll take another look at it in a bit.
EDIT: This will be the death of me -_-
There must be something I am missing. That or I just suck at Linux.
-
wrote on Oct 1, 2020, 6:40 AM last edited by robi Oct 1, 2020, 6:45 AM
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
-
wrote on Oct 1, 2020, 8:22 PM last edited by
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.
-
wrote on Oct 2, 2020, 5:44 AM last edited by
@girish This ERR_TOO_MANY_REDIRECTS issue has me stumped. Tried a few things tonight with no luck. Any ideas?
-
@atrilahiji Merged your MR and fixed the redirect issue as well.
Do you use or need LDAP in your setup? If not, we can leave LDAP integration for some future release. SMTP still needs to be automated though.
wrote on Oct 3, 2020, 12:25 AM last edited by@girish thanks
Yeah LDAP can be a later release. I’ll get SMTP figured out though
-
@atrilahiji What you can do is basically setup SMTP and then look into the database entries. https://docs.moodle.org/19/en/Email_settings gives some hints on how to update it. So, we can just put some sql commands in the start.sh .
-
@atrilahiji What you can do is basically setup SMTP and then look into the database entries. https://docs.moodle.org/19/en/Email_settings gives some hints on how to update it. So, we can just put some sql commands in the start.sh .
wrote on Oct 3, 2020, 6:38 AM last edited by A Former User Oct 3, 2020, 6:41 AM@girish Done. Merge Request is up: https://git.cloudron.io/cloudron/moodle-app/-/merge_requests/2
Excited to get this up!
-
@atrilahiji Merged your MR and fixed the redirect issue as well.
Do you use or need LDAP in your setup? If not, we can leave LDAP integration for some future release. SMTP still needs to be automated though.
wrote on Oct 3, 2020, 10:46 AM last edited by jdaviescoates Oct 3, 2020, 11:28 AM@girish said in Moodle Open Source Learning Platform:
Do you use or need LDAP in your setup?
LDAP integration is a key USP of Cloudron so hopefully this'll come soon too!
Especially as Moodle now integrates nicely with Nextcloud 20!
Moodle courses showing up in searchSee:
https://nextcloud.com/press/pr20201003-4
https://help.nextcloud.com/t/nextcloud-hub-20-debuts-dashboard-unifies-search-and-notifications-integrates-with-other-technologies/93838 -
@girish said in Moodle Open Source Learning Platform:
Do you use or need LDAP in your setup?
LDAP integration is a key USP of Cloudron so hopefully this'll come soon too!
Especially as Moodle now integrates nicely with Nextcloud 20!
Moodle courses showing up in searchSee:
https://nextcloud.com/press/pr20201003-4
https://help.nextcloud.com/t/nextcloud-hub-20-debuts-dashboard-unifies-search-and-notifications-integrates-with-other-technologies/93838wrote on Oct 3, 2020, 3:25 PM last edited by@jdaviescoates I’ll see what I can figure out. Perhaps it’s done the same way I added SMTP.
-
@girish Done. Merge Request is up: https://git.cloudron.io/cloudron/moodle-app/-/merge_requests/2
Excited to get this up!
@atrilahiji Merged! Awesome stuff, didn't know about cfg.php. I made a change after merging your change which is to setup credentials on all startup and not just the first time. We do this because let's say you clone the app or move it to another server etc, then the SMTP credentials will change.
-
I have pushed moodle in unstable now and will mark this thread as solved.
Let's take up bugs/issues in a the new Moodle app category - https://forum.cloudron.io/category/102/moodle
Again, thanks a lot @atrilahiji !
-
@atrilahiji Merged! Awesome stuff, didn't know about cfg.php. I made a change after merging your change which is to setup credentials on all startup and not just the first time. We do this because let's say you clone the app or move it to another server etc, then the SMTP credentials will change.
wrote on Oct 3, 2020, 9:25 PM last edited by@girish oh I didn’t think about that use case. Thanks for all of your hard work! I’ll get on LDAP sometime this weekend and maybe we can get that into a release soon
-
@girish oh I didn’t think about that use case. Thanks for all of your hard work! I’ll get on LDAP sometime this weekend and maybe we can get that into a release soon
wrote on Oct 4, 2020, 1:23 AM last edited by@atrilahiji @girish
+1
-
wrote on Oct 4, 2020, 1:25 AM last edited by
Great work @atrilahiji & co.
-