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


Navigation

    Cloudron Forum

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

    SOLVED Moodle Open Source Learning Platform

    App Wishlist
    8
    51
    456
    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.
    • jdaviescoates
      jdaviescoates @atrilahiji 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.

      1 Reply Last reply Reply Quote 1
      • atrilahiji
        atrilahiji App Dev last edited by atrilahiji

        @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
        • atrilahiji
          atrilahiji App Dev 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.

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

              atrilahiji 1 Reply Last reply Reply Quote 2
              • atrilahiji
                atrilahiji App Dev @robi last edited by atrilahiji

                @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
                • atrilahiji
                  atrilahiji App Dev @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!

                    atrilahiji 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?!? 😛

                      1 Reply Last reply Reply Quote 0
                      • atrilahiji
                        atrilahiji App Dev @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.

                          atrilahiji 1 Reply Last reply Reply Quote 1
                          • atrilahiji
                            atrilahiji App Dev @girish last edited by atrilahiji

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

                              atrilahiji 1 Reply Last reply Reply Quote 3
                              • atrilahiji
                                atrilahiji App Dev @girish last edited by atrilahiji

                                @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
                                • atrilahiji
                                  atrilahiji App Dev 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 @atrilahiji 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 1 Reply Last reply Reply Quote 0
                                    • atrilahiji
                                      atrilahiji App Dev @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 @atrilahiji last edited by

                                        @atrilahiji is that an ownership or permission issue?

                                        atrilahiji 1 Reply Last reply Reply Quote 0
                                        • atrilahiji
                                          atrilahiji App Dev @robi last edited by atrilahiji

                                          @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
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post