Upgrading to Moodle 3.11 using GIT

Поделиться
HTML-код
  • Опубликовано: 22 фев 2022
  • Upgrading Moodle can be a pain but if using the (not so scary) command line, we can safely and easily upgrade our Moodle instance in no time at all.
    * Note: it is recommended to upgrade to the highest version of 3.10.x before switching to 3.11.
    Commands:
    Upgrading from 3.10.3+ to 3.10.4+
    ---------------------------------------------
    cd /path/to/your/moodle/wwwroot
    sudo -u www-data php admin/cli/maintenance.php --enable
    git pull
    sudo -u www-data php admin/cli/upgrade.php
    sudo -u www-data php admin/cli/maintenance.php --disable
    ---------------------------------------------
    Upgrading from 3.10.4+ to 3.11
    ---------------------------------------------
    cd /path/to/your/moodle/wwwroot
    sudo -u www-data php admin/cli/maintenance.php --enable
    git pull
    git branch --track MOODLE_311_STABLE origin/MOODLE_311_STABLE
    git checkout MOODLE_311_STABLE
    sudo -u www-data php admin/cli/maintenance.php --disable

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

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

    Thank you so much!

    • @Wise-Cat
      @Wise-Cat  11 месяцев назад +1

      You're welcome! I haven't made a video on upgrading to 4.2 yet, but it is on my to-do list. Thanks.

  • @heteranc
    @heteranc 2 года назад +2

    thanks, this was very helpful, I even tried it to move from 3.11 to 4.0 and it worked almost great, i'm getting a weird error when trying to login into the site, regarding some class 'mod_grade_renderer' (or something similar) not found, is quite weird, but being moodle 4 so new (one day of life hahahaha) probably a small upgrade bug

    • @Wise-Cat
      @Wise-Cat  2 года назад +1

      Small upgrade bug... yeah I had a few of those during my livestream last night (haha). If you check the error logs for your server (and/or turn debugging on) you might find more information to help you diagnose this issue. Good hunting!

  • @66Nerix99
    @66Nerix99 2 года назад +1

    Using the CLI method, make a backup isn't necesary? Many thanks in advance.

    • @Wise-Cat
      @Wise-Cat  2 года назад +1

      Oh, backups are always necessary. Things only break when you don't have a backup. Always take backups and practice restoring from your backups to make sure you are properly protected at all times.