Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Moodle Open Source Learning Platform

    App Wishlist
    8
    51
    1826
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nebulon
      nebulon Staff last edited by girish

      Moodle Open Source Learning Platform

      https://moodle.org/

      Example: https://moodle.midmich.edu/

      1 Reply Last reply Reply Quote 13
      • P
        plusone-nick last edited by

        This would be a major +1 addition
        Integrates with: NextCloud, OnlyOffice, RocketChat & BigBlueButton!
        Great educational offering!
        =]

        βœŒπŸ’™+1

        1 Reply Last reply Reply Quote 5
        • robi
          robi last edited by

          Is there progress on this?
          A starting repo? dockerized example?

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 1
          • ?
            A Former User last edited by

            One thing is its pretty plug and play with the LAMP stack (literally clone and copy the moodle source into the public folder)

            https://learn.atrilahiji.dev

            robi 1 Reply Last reply Reply Quote 2
            • ?
              A Former User last edited by

              I mean I could probably try to make a one-click for it. I just need to test if I can pre-config the DB, because Moodle has its own config interface where it asks for that info.

              1 Reply Last reply Reply Quote 3
              • robi
                robi @Guest last edited by

                @atrilahiji
                Thanks for that tip, I will investigate.
                Hopefully it's scalable from there as I am not sure all the text/pdf + video content should be stored in the app.
                How well does Moodle handle externalizing content via embeddings?

                Life of Advanced Technology

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @robi last edited by

                  @robi I'm throwing together a package now to test the process of making an app for Moodle. I'll see if I can automate more (I work on Moodle and surrounding apps for my job).

                  As for your question, I am not sure what you mean exactly. I would generally suggest ALWAYS using an external source to store large files as Moodle handles is poorly. The institution I work at always recommends using something like Google Drive and then embedding the content.

                  1 Reply Last reply Reply Quote 1
                  • ?
                    A Former User last edited by A Former User

                    @robi @nebulon My initial commit is here. I didn't auto config anything for now. I will clean this up a bit later. For now, this should work though.

                    https://git.cloudron.io/AtriLahiji/moodle

                    robi 1 Reply Last reply Reply Quote 4
                    • robi
                      robi @Guest last edited by

                      @atrilahiji Awesome! Thank you so much.

                      Life of Advanced Technology

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @robi last edited by

                        @robi np πŸ‘

                        1 Reply Last reply Reply Quote 0
                        • girish
                          girish Staff last edited by

                          @atrilahiji Sounds like an excellent start. BTW, I see you started out with Lamp app. It probably has a lot of superfluous stuff like FTP support etc. You can instead trim it down to be like say the https://git.cloudron.io/cloudron/snipeit-app app or any of the other PHP apps. Thanks for working on this!

                          ? 1 Reply Last reply Reply Quote 1
                          • ?
                            A Former User @girish last edited by A Former User

                            @girish Good suggestion! I'll look at the other PHP apps for reference. I know Moodle has a non interactive install process so im hoping to leverage that to automate this a bit. Right now its the LAMP stack with a pre-populated public folder. It just makes it slightly easier to deploy? I was going to say that BBB would be an amazing choice on top of this, as Moodle + BBB work quite well together. I know the greenlight app is being worked on but maybe someone can look at the BBB server too? (call to someone out there to help! :D)

                            My schedule is very tight so it might take me a bit to get something proper working for Moodle. I will definitely welcome collaboration if anyone else would like to pitch in!

                            robi scooke jdaviescoates 3 Replies Last reply Reply Quote 1
                            • robi
                              robi @Guest last edited by robi

                              @atrilahiji isn't BigBlueButton (BBB) just a plugin for Moodle?
                              Looks like just a drop-in zip file.
                              https://docs.moodle.org/30/en/BigBlueButtonBN#Installation

                              Life of Advanced Technology

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User last edited by

                                @robi Thats a plugin to integrate with a BigBlueButton server. You'd still need to host the BBB server and then use that plugin to let instructors create sessions straight from the LMS.

                                robi 1 Reply Last reply Reply Quote 0
                                • marcusquinn
                                  marcusquinn last edited by

                                  πŸ‘ for a dedicated education app. Remote learning is certainly new ground to many and a Cloudron solution to that would be good for many organisations.

                                  We're not here for a long time - but we are here for a good time :)
                                  Jersey/UK
                                  Work & Ecommerce Advice: https://brandlight.org
                                  Personal & Software Tips: https://marcusquinn.com

                                  1 Reply Last reply Reply Quote 0
                                  • scooke
                                    scooke @Guest last edited by

                                    @atrilahiji Thanks for doing this. I recently was running my Moodle in the LAMP app and it worked well. How will the packaged Moodle you're working on handle upgrades?

                                    A life lived in fear is a life half-lived

                                    ? 1 Reply Last reply Reply Quote 0
                                    • jdaviescoates
                                      jdaviescoates @Guest last edited by

                                      @atrilahiji said in Moodle Open Source Learning Platform:

                                      maybe someone can look at the BBB server too? (call to someone out there to help! :D)

                                      I'm hoping that as soon as BBB 2.3 is released (which is compatible with Ubuntu 18.04 unlike the existing releases which still only run on 16.04!) @girish & @nebulon (& or others in the community) will begin packaging BBB.

                                      See this thread:
                                      https://forum.cloudron.io/post/1187

                                      I use Cloudron with Gandi & Hetzner

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User @scooke last edited by A Former User

                                        @scooke good question. It shouldn’t be an issue as far as I can tell. Again the package needs a lot of work before it’s ready but I imagine we’d just swap out the contents of the public folder and it would trigger an upgrade when you go to the site.

                                        Right now I’m trying to automate any config I can and perhaps get LDAP working??? The problem is it makes an admin account in the setup. Unsure how to get around that.

                                        jdaviescoates 1 Reply Last reply Reply Quote 1
                                        • jdaviescoates
                                          jdaviescoates @Guest last edited by jdaviescoates

                                          @atrilahiji said in Moodle Open Source Learning Platform:

                                          The problem is it makes an admin account in the setup. Unsure how to get around that.

                                          Quite a few apps on Cloudron do that.

                                          Generally some initial set-up instructions are given at install for how to access the default admin account it creates, and then you login using that, change the password and make an LDAP user an admin too.

                                          I use Cloudron with Gandi & Hetzner

                                          1 Reply Last reply Reply Quote 1
                                          • ?
                                            A Former User last edited by A Former User

                                            @robi @girish Made a couple of changes. Definitely open to feedback.

                                            https://git.cloudron.io/AtriLahiji/moodle

                                            Still need to figure out LDAP.

                                            EDIT: Unsure if LDAP config is something I can automate. Perhaps I'll document it away unless someone else has any ideas.

                                            1 Reply Last reply Reply Quote 3
                                            • ?
                                              A Former User last edited by

                                              I'm at a point with this that I'm quite comfortable with. I'd happily work on documentation for this if needed. What would be needed to have this added an official app? @nebulon @girish

                                              Only other things I can think of I guess are testing and proper upgrade support in start.sh?

                                              1 Reply Last reply Reply Quote 2
                                              • girish
                                                girish Staff last edited by

                                                I found this tool - https://moosh-online.com/commands/ . It seems to be able to install plugins via the plugin-install command.

                                                Thanks @atrilahiji . @nebulon and I will take a look sometime this week on how to move this forward and get it published.

                                                ? 1 Reply Last reply Reply Quote 2
                                                • robi
                                                  robi @Guest last edited by

                                                  @atrilahiji said in Moodle Open Source Learning Platform:

                                                  @robi Thats a plugin to integrate with a BigBlueButton server. You'd still need to host the BBB server and then use that plugin to let instructors create sessions straight from the LMS.

                                                  Oh I see, just like OnlyOffice with NextCloud. That begs the question, does Moodle integrate with NextCloud?

                                                  The NextCloud Talk (spreed) audio/video is a great replacement for zoom/webex/kopano/jitsi!

                                                  If so, no need for BBB.

                                                  Life of Advanced Technology

                                                  ? 1 Reply Last reply Reply Quote 2
                                                  • ?
                                                    A Former User @robi 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.

                                                    1 Reply Last reply Reply Quote 1
                                                    • ?
                                                      A Former User @girish last edited by

                                                      @girish Thanks Girish! If theres anything I can do to take some weight off of you and @nebulon 's shoulders let me know. A part of my actual job is writing documentation for Moodle and Moodle administration πŸ‘€

                                                      1 Reply Last reply Reply Quote 2
                                                      • girish
                                                        girish Staff last edited by

                                                        @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!

                                                        ? 1 Reply Last reply Reply Quote 3
                                                        • jdaviescoates
                                                          jdaviescoates last edited by

                                                          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?!? πŸ˜›

                                                          I use Cloudron with Gandi & Hetzner

                                                          1 Reply Last reply Reply Quote 0
                                                          • ?
                                                            A Former User @girish 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.

                                                            1 Reply Last reply Reply Quote 1
                                                            • girish
                                                              girish Staff last edited by

                                                              @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.

                                                              ? 1 Reply Last reply Reply Quote 1
                                                              • ?
                                                                A Former User @girish last edited by A Former User

                                                                @girish Cool thanks! I think I have it working mostly. Trying to sort out an ERR_TOO_MANY_REDIRECTS situation.

                                                                EDIT: I pushed what I have since I have to go out

                                                                1 Reply Last reply Reply Quote 1
                                                                • girish
                                                                  girish Staff last edited by girish

                                                                  @atrilahiji Awesome, thanks. I have forked into https://git.cloudron.io/cloudron/moodle-app and pushed some more fixes. You should have gotten an invite to the repo. I see the redirect issue that you are seeing as well.

                                                                  ? 1 Reply Last reply Reply Quote 2
                                                                  • ?
                                                                    A Former User @girish last edited by A Former User

                                                                    @girish Thanks a lot! I have never actually handled Moodle hosting it so the Apache setup is definitely new to me. I'm glad you guys and the community have more experience otherwise I'd be completely lost :')

                                                                    This community is 10/10

                                                                    1 Reply Last reply Reply Quote 3
                                                                    • ?
                                                                      A Former User 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.

                                                                      robi 1 Reply Last reply Reply Quote 0
                                                                      • robi
                                                                        robi @Guest 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.

                                                                        Life of Advanced Technology

                                                                        ? 1 Reply Last reply Reply Quote 0
                                                                        • ?
                                                                          A Former User @robi last edited by

                                                                          @robi Screen Shot 2020-09-30 at 5.09.44 PM.png

                                                                          I seem to get this no matter what I do. Trying to write moodledata to /app/data but it says it doesn't exist?

                                                                          robi 1 Reply Last reply Reply Quote 0
                                                                          • robi
                                                                            robi @Guest last edited by

                                                                            @atrilahiji is that an ownership or permission issue?

                                                                            Life of Advanced Technology

                                                                            ? 1 Reply Last reply Reply Quote 0
                                                                            • ?
                                                                              A Former User @robi last edited by A Former User

                                                                              @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.

                                                                              1 Reply Last reply Reply Quote 0
                                                                              • robi
                                                                                robi last edited by robi

                                                                                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/code

                                                                                mv config.php /app/data/moodledata
                                                                                

                                                                                then

                                                                                ln -s /app/data/moodledata/config.php /app/code/config.php
                                                                                

                                                                                Life of Advanced Technology

                                                                                1 Reply Last reply Reply Quote 0
                                                                                • ?
                                                                                  A Former User 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.

                                                                                  1 Reply Last reply Reply Quote 2
                                                                                  • ?
                                                                                    A Former User last edited by

                                                                                    @girish This ERR_TOO_MANY_REDIRECTS issue has me stumped. Tried a few things tonight with no luck. Any ideas?

                                                                                    1 Reply Last reply Reply Quote 1
                                                                                    • girish
                                                                                      girish Staff last edited by

                                                                                      @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.

                                                                                      ? jdaviescoates 2 Replies Last reply Reply Quote 1
                                                                                      • ?
                                                                                        A Former User @girish last edited by

                                                                                        @girish thanks πŸ™

                                                                                        Yeah LDAP can be a later release. I’ll get SMTP figured out though

                                                                                        1 Reply Last reply Reply Quote 1
                                                                                        • girish
                                                                                          girish Staff last edited by

                                                                                          @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 .

                                                                                          ? 1 Reply Last reply Reply Quote 1
                                                                                          • ?
                                                                                            A Former User @girish last edited by A Former User

                                                                                            @girish Done. Merge Request is up: https://git.cloudron.io/cloudron/moodle-app/-/merge_requests/2

                                                                                            Excited to get this up! πŸ˜„

                                                                                            girish 1 Reply Last reply Reply Quote 1
                                                                                            • jdaviescoates
                                                                                              jdaviescoates @girish last edited by jdaviescoates

                                                                                              @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! 😊

                                                                                              search-moodle-course-module.png
                                                                                              Moodle courses showing up in search

                                                                                              See:
                                                                                              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

                                                                                              I use Cloudron with Gandi & Hetzner

                                                                                              ? 1 Reply Last reply Reply Quote 1
                                                                                              • ?
                                                                                                A Former User @jdaviescoates last edited by

                                                                                                @jdaviescoates I’ll see what I can figure out. Perhaps it’s done the same way I added SMTP.

                                                                                                1 Reply Last reply Reply Quote 1
                                                                                                • girish
                                                                                                  girish Staff @Guest last edited by

                                                                                                  @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.

                                                                                                  ? 1 Reply Last reply Reply Quote 1
                                                                                                  • girish
                                                                                                    girish Staff last edited by

                                                                                                    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 !

                                                                                                    1 Reply Last reply Reply Quote 2
                                                                                                    • ?
                                                                                                      A Former User @girish 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

                                                                                                      P 1 Reply Last reply Reply Quote 6
                                                                                                      • P
                                                                                                        plusone-nick @Guest last edited by

                                                                                                        @atrilahiji @girish πŸ™πŸ™πŸ™+1

                                                                                                        βœŒπŸ’™+1

                                                                                                        1 Reply Last reply Reply Quote 1
                                                                                                        • marcusquinn
                                                                                                          marcusquinn last edited by

                                                                                                          Great work @atrilahiji & co. πŸŽ“

                                                                                                          We're not here for a long time - but we are here for a good time :)
                                                                                                          Jersey/UK
                                                                                                          Work & Ecommerce Advice: https://brandlight.org
                                                                                                          Personal & Software Tips: https://marcusquinn.com

                                                                                                          1 Reply Last reply Reply Quote 1
                                                                                                          • First post
                                                                                                            Last post
                                                                                                          Powered by NodeBB