Migrate Moodle from Bitnami Moodle-3.0.4-0 to Latest Version

Migrate Moodle from Bitnami Moodle-3.0.4-0 to Latest Version

by Nilesh More -
Number of replies: 2

Hi Team,

Greetings for the day!!

I am planning to upgrade our existing Moodle to new platform with latest version of Moodle. Currently we are using Bitnami Moodle Server in our one of old and need to move Moodle to new server.

Below are existing Moodle details,

# Platform: BareMetal Server (OS-CentOS Linux release 7.0)
# OS Kernel: 3.10.0-123.el7.x86_64
# Existing Moodle Version: Moodle-3.0.4-0
# Database: Mysql (mysql Ver 15.1 Distrib 5.5.35-MariaDB, for Linux (x86_64) using readline 5.1)
# Moodle Installation Method: >> Approach A: Using system packages. # PHP Version: PHP 5.4.16 (cli) (built: Jun 10 2014 02:52:47) # HTTP Version: Apache/2.4.6 (CentOS)

We bought new server and would like to move whole data (including database/application data) from old server to new server. I have installed Ubuntu 20.04 LTS Server in new server. 

Please let me know what is safest way to migrate from old server to new server. We have very important training videos on existing server.

Please help!!

Regards,
Nilesh

Average of ratings: -
In reply to Nilesh More

Re: Migrate Moodle from Bitnami Moodle-3.0.4-0 to Latest Version

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't know anything about how Bitnami installs Moodle (nor would I recommend it). However, can you get a copy of the database and the 'moodledata' files area from your existing server? As long as you can it should be relatively straightforward.
In reply to Nilesh More

Re: Migrate Moodle from Bitnami Moodle-3.0.4-0 to Latest Version

by Ken Task -
Picture of Particularly helpful Moodlers

2 cents more ...

Assume that the new server has enough space to handle the transfer of site (moodledata) since you mentioned 'very important training videos'.

Official docs:

https://docs.moodle.org/311/en/Moodle_migration

Focuses on moodle - which is really the last step in a migration.

Are you going to keep the same fully qualified domain name?

So the Ubuntu you've spun up ... is apache there running https with a valid certificate and a FQDN?

Decide/Do above first ... then PHP ... test php with a phpinfo.php page at document root of server.

Setup the DB server with proper access restrictions - local host - if on same server - and reduced number of users.  Don't do test DB's.

Then import the DB into a new DB on new environment.  If changing the FQDN might do a search and replace on the SQL dump before importing to new DB on new server.

Probably should transfer what you have first ... the 3.x ... and get that running as it should, then upgrade.

Perfect time to move your site to using git for core code.

https://docs.moodle.org/311/en/Git_for_Administrators

Again ... my 2 'sense'. (nope, spelled it right!) ;)

'SoS', Ken