azuremoodle

Migrate Bitnami LMS powered by Moodle(TM) LMS

There are two important steps when migrating a Bitnami LMS powered by Moodle(TM) LMS deployment: migrate the database and migrate the moodledata/ folder. You may want to migrate the themes/ and modules/ folders if you have them installed also.

To make this process easier, it will be divided into five sub-steps.

Export the database

You can do this manually or with phpMyAdmin. If you use phpMyAdmin, export it as an .sql file.

Copy the Moodle data folder

In this step, you just need to copy the Moodle LMS data directory (moodledata) to the machine where you have installed the new Bitnami LMS powered by Moodle LMS deployment. When doing this step, copy the exported database file too. If you have themes or modules installed and you want to keep them, you must also copy them.

Import the database

Delete the tables in the bitnami_moodle database. The easiest way is to use phpMyAdmin, but you can also do this manually. Once deleted, import the database exported earlier.

Substitute moodledata/ (and other) directories

Replace the moodledata/ directory, as well as the themes/ and modules/ directories if needed, with the ones from the original installation.

Restart and update the database

Once these steps are complete, restart the Apache server and access Moodle LMS through the browser. If you log in as an administrator, you will be asked to update your database. Click to do this and the migration of your Bitnami LMS powered by Moodle(TM) LMS stack will be completed.

For a more detailed walkthrough with commands, refer to our guide on migrating a Bitnami LMS powered by Moodle(TM) LMS stack.

Last modification February 9, 2023