Migrqting from windows installer to moodle 3.1.2 Full Server

Re: Migrqting from windows installer to moodle 3.1.2 Full Server

by Ken Task -
Number of replies: 0
Picture of Particularly helpful Moodlers

A migration of a site on any OS platform requires making a full site backup ... that's an archive of the code, an SQL dump of the database, an archive of the moodledata directory.

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

So on the server where the site is to be cloned ... guess you use your GUI installer ... then find the locations of code directory and data directory created.   Replace (not overwrite) those with backups from the other server.   Drop the database created by the GUI, re-create a new fresh database using PHPMyAdmin then import the sql file.

Not done yet ... edit config.php file and update wwwroot for the new server ... IP, FQDN of new server.

And then login, go to: http://site/admin/tool/replace/ via URL of browser, Search for:

http://oldsite/ - include the protocol and trailing slash

replace with http://newsite/ - ditto.

Purge the caches.

Test.

'spirit of sharing', Ken