Moodle Hosting Tutorial 1 - How to host a Moodle site in AWS

Поделиться
HTML-код
  • Опубликовано: 8 июн 2022
  • This goes through hosting a Moodle site in the cloud using AWS Lightsail.
    This is a simple way to host a moodle site but there are many different configurations. Other configurations will have better scaling, handle bursts of usage, or have easier more automated deployments.
    Main commands used can be found here: github.com/kristian-94/moodle...
    Get the full course on Udemy: www.udemy.com/course/moodle-d...
    For custom development work, one on one training, or Moodle hosting, get in touch with us over at ringertech.org/contact

Комментарии • 36

  • @Fls1979
    @Fls1979 8 месяцев назад

    Thank you so much for your tutorial! :-)

  • @ronniebaskind5903
    @ronniebaskind5903 6 месяцев назад +2

    Useful for the most part. I found it impossible to follow the early steps where you say 'you should do [something]', but you don't show how. Also, when you edit the files in the ssh terminal, you're too fast so I can't see what commands you're typing to save the files and go back to the terminal.

  • @philipkainde9355
    @philipkainde9355 Год назад +2

    I would appreciate a video on registering a domain on aws, and tie it to a static ip address for the moodle site and may be a way to increase the file upload size on the Moodle LMS

    • @moodletips
      @moodletips  Год назад

      There is a video on that in the udemy course, we install the moodle on a static IP with a domain. Increasing the file size for uploading is a bit tricky since there are multiple levels where it can be stopped (server/application). I don't have a video on that however have used this page many times as a checklist to get that working: docs.moodle.org/311/en/File_upload_size

  • @aada5121
    @aada5121 5 месяцев назад

    i have do all the steps shown in the video but there is only one problem the css and js not loading when i deploy this using cloudfront in aws as https but in the http it is working well. can you fix this problem ?

  • @philipkainde9355
    @philipkainde9355 Год назад +1

    good stuff. For the lightsail image you used are there charges tied to it?

    • @moodletips
      @moodletips  Год назад +1

      Glad you liked it, yep it's around 3 usd per month for me on the cheapest instance

    • @nairleju
      @nairleju Год назад

      @@moodletips what about S3 storage cost? won't it be higher than $3.5?

    • @moodletips
      @moodletips  Год назад

      @@nairleju s3 isn’t in a vanilla moodle setup but you can integrate with it using cloud storage plugins which can reduce local disk space used. Should be cheaper but potentially slower to use s3

  • @aleevsergey
    @aleevsergey 7 месяцев назад

    Hi, thanks for the tutorial. Trying to figure out the costs. So the cloud version says it will be 850$ annually for 500 users and 2 gb storage.
    Can you please advice on the approximate cost for the same setup on AWS?

    • @moodletips
      @moodletips  7 месяцев назад

      The way we've set it up here it's just that lightsail instance. It depends which one you choose, you get different specs on your server. Can be as little as $5/month

  • @gabrielcardoso3879
    @gabrielcardoso3879 7 месяцев назад

    Hi there! I really enjoyed your video, and I was able to follow along until the installation part around the 11-minute mark, despite encountering a few errors (mostly my fault, I admit!). I'm wondering if it's possible to configure Moodle through the website itself, or do I have to make changes to the config-dist.php file like you did in the video?
    I'm relatively new to programming, and I've never used Vim, so there are some steps in your video that I find a bit challenging to grasp, especially when you copied the config-dist.php and created a new one to edit. If there's a way to configure Moodle more easily through the web interface, that would be fantastic!

    • @moodletips
      @moodletips  7 месяцев назад +1

      Hey, thanks for watching and great that you're getting some value out of the vids :)
      I copied the config-dist.php file to a new file called config.php. In the new file, that's where we set all the config. If you have no config.php file Moodle will take you through a UI wizard to create one in sitedata and then you'll still need to manually move it to the right spot in the code folder.
      I'd recommend you try to do it the way I did in the video though, and understand what we're doing. Better to know this stuff long term and if you're going to be hosting a Moodle you can fix problems. You can ask questions here too, good luck

    • @gabrielcardoso3879
      @gabrielcardoso3879 7 месяцев назад

      @@moodletips Thank you very much, I've managed to do using Vim. You're right, the sooner I learn to use this method the better for future updates or troubleshooting.
      I'm currently bulding an website for a friend that have a music school, and it involves creating an Angular web page that is more informational and visually pleasing, with some functionality. This Angular page is connected through s to the Moodle page. My idea is for students to access the Angular page and, upon clicking the login button, be redirected to the Moodle login page. Similarly, I'd like direct access on the Moodle page to redirect to the Angular page. I'm only concerned about the deploy of both on a AWS instance, and that is what I'm gonna be trying to do today, I already have the moodle deployed (thanks to your tutorial) and now to the angular page deploy. You have any advice on that? thanks a lot

    • @moodletips
      @moodletips  7 месяцев назад +1

      ​@@gabrielcardoso3879 If your angular page is just compiled down to simple html and javascript in the end, I would recommend looking into hosting it using a static site on S3. That's really cheap hosting and pretty easy to do. You can get https by putting cloudfront CDN in front which also makes it faster, worth learning.

    • @gabrielcardoso3879
      @gabrielcardoso3879 7 месяцев назад

      @@moodletips Thanks for the tip. I'll check it out. I think I can use Iframes on separate instances and have a smooth interaction between them. I want it to feel like you're on the same page, working within the same domain-maybe by using a subdomain for one of them. Thanks a bunch! Appreciate your help :)

  • @feliciawilkes4427
    @feliciawilkes4427 2 года назад

    Looking for a demo on how to implement charts api with the logs to get the average time a student took to complete a question on a quiz.

    • @moodletips
      @moodletips  Год назад

      If you're still looking for this, I know some Moodle devs who could help!

  • @jaa70
    @jaa70 Год назад

    cool, how do you setup Outgoing mail configuration ?

    • @moodletips
      @moodletips  Год назад +1

      You can use different external servers like gmail, some docs here: docs.moodle.org/400/en/Email_setup_gmail

  • @jyemarshall8101
    @jyemarshall8101 10 месяцев назад

    Any ideas? : Deprecated: Return type of moodle_recordset::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/bitnami/apache/htdocs/lib/dml/moodle_recordset.php on line 61
    Fatal error: Type of xml_format_exception::$line must be int (as in class Exception) in /opt/bitnami/apache/htdocs/lib/xmlize.php on line 0

    • @jyemarshall8101
      @jyemarshall8101 10 месяцев назад

      Update PHP 8 is not supported must downgrade to PHP 7

    • @jyemarshall8101
      @jyemarshall8101 10 месяцев назад

      Does anyone know how to install on PHP 8?

    • @moodletips
      @moodletips  10 месяцев назад

      @@jyemarshall8101 You need the moodle version, php version, mysql version to all be compatible. It looks like you're on an older moodle branch. If you checkout the moodle 4.1 branch that should work with php 8. It's much easier to change moodle branches than install a different php version

  • @perrin3932
    @perrin3932 11 месяцев назад

    I’m unable to get that new installation page to appear after the vim edits. Any ideas why?

    • @moodletips
      @moodletips  11 месяцев назад

      You need to have a config.php file in your site root. Don't just edit the config-dist.php file. If you have a config file it should skip the installation

  • @precastdetailing
    @precastdetailing 27 дней назад

    Any idea on how this can be dockerised?

    • @moodletips
      @moodletips  26 дней назад

      Start with the official moodle image, it's pretty good: github.com/moodlehq/moodle-docker
      Your Dockerfile can look something like:
      FROM moodlehq/moodle-php-apache:8.2
      COPY . /var/www/html/

  • @escuelaprimarialosmameyes1855
    @escuelaprimarialosmameyes1855 Год назад

    Deprecated: Return type of moodle_recordset::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/bitnami/apache/htdocs/lib/dml/moodle_recordset.php on line 61
    Fatal error: Type of xml_format_exception::$line must be int (as in class Exception) in /opt/bitnami/apache/htdocs/lib/xmlize.php on line 0

    • @moodletips
      @moodletips  Год назад

      Seems like you're running some old or buggy code from a plugin or something. Check that you're on a stable moodle branch

  • @ChristopherZeh-yf9dx
    @ChristopherZeh-yf9dx 11 месяцев назад

    max_input_vars
    this test must pass
    PHP setting max_input_vars must be at least 5000. Having this issue and when changed still doesnt work

    • @moodletips
      @moodletips  11 месяцев назад +1

      It should normally be just a matter of changing that in php.ini and restarting apache. Try the steps outlined here docs.moodle.org/402/en/Environment_-_max_input_vars

  • @luffymonkey3919
    @luffymonkey3919 11 месяцев назад

    how to migrate my local moodle to aws?

    • @moodletips
      @moodletips  11 месяцев назад

      I would follow the tips in docs.moodle.org/402/en/Moodle_migration

  • @lovishsundan7025
    @lovishsundan7025 Год назад

    speek loudely

  • @kaindemutua7363
    @kaindemutua7363 Год назад

    mv: cannot move '/opt/moodle/.' to '/home/bitnami/htdocs/.': Device or resource busy
    mv: cannot move '/opt/moodle/..' to '/home/bitnami/htdocs/..': Device or resource busy