generalmoodle

Upgrade Bitnami LMS powered by Moodle(TM) LMS

It is strongly recommended that you create a backup before starting the update process. If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly.

Upgrade Bitnami LMS powered by Moodle(TM) LMS following these steps:

  • Move your current Moodle LMS files:

      $ sudo mv /bitnami/moodle /bitnami/moodle.backup
    
  • Download the new Moodle LMS version from the Moodle website. Do this by clicking the package download link on the Web page or using the command below with a direct download URL (the VERSION placeholder in the command refers to the Moodle LMS version number).

      $ wget http://download.moodle.org/download.php/direct/stableVERSION/moodle-latest-VERSION.y.tgz
    
  • Create a new folder and uncompress the files:

      $ sudo mkdir /bitnami/moodle
      $ sudo tar -xzvf moodle-latest-VERSION.tgz -C /bitnami/moodle --strip 1
    
  • Copy your previous configuration file and your modules or themes:

      $ sudo cp -a /bitnami/moodle.backup/config.php /bitnami/moodle/
      $ sudo cp -a /bitnami/moodle.backup/theme/MY_THEME /bitnami/moodle/theme/
      $ sudo cp -a /bitnami/moodle.backup/mod/MY_MOD /bitnami/moodle/mod/
    

    NOTE: Replace the MY_THEME and MY_MOD placeholders with the directory or path names for your downloaded and installed themes and modules (these are different from the ones shipped by Bitnami).

  • Configure file permissions as follows:

      $ sudo chown daemon:daemon -LR /opt/bitnami/moodle
      $ sudo chmod -R g+rwX /opt/bitnami/moodle
      $ sudo chown root /opt/bitnami/moodle/config.php
      $ sudo chmod 640 /opt/bitnami/moodle/config.php
    
  • Execute the following commands to check that the file permissions were configured properly:

      $ ls -la /opt/bitnami/moodle/
      $ ls -la /opt/bitnami/moodle/blocks/
    

    The output should reflect that the files and directories listed are owned by the daemon user and daemon group.

  • Navigate to the application from a browser and follow the steps to upgrade the database to the latest version.

    NOTE: If you want to install modules or plugins from the Moodle administration panel, refer to the migration steps.

Last modification February 9, 2023