Migrate Local development moodle to website host

Migrate Local development moodle to website host

by Nathanael Erlando Putra -
Number of replies: 3

Hi, I want to ask. If I have a moodle installed on my laptop (locally) and i already did some changes with the code inside, like adding some plugins (blocks and local), when I want to host this moodle website, how can I do it?

Do I just simply zip all the moodle code and then upload it to the website hosting? (I want to use Hostinger for the website host).

Thanks for anyone helping

Average of ratings: -
In reply to Nathanael Erlando Putra

Re: Migrate Local development moodle to website host

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Yes - you can do that.

But it's probably more convenient to use Git (and a Github account).
In reply to Nathanael Erlando Putra

Re: Migrate Local development moodle to website host

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
The migration will be easier if you first install the same new version of Moodle on Hostinger. This will "prove" that Moodle runs correctly on Hostinger. Then you can attempt the migration, keeping a copy of config.php from your Hostinger installation.

You will then need to move the Moodle code, replacing its config.php file with the Hostinger config.php file, replace the database tables on Hostinger with your local database tables, and replace the moodledata folder accordingly.