Moving from localhost to the internet

Re: Moving from localhost to the internet

by Jason Hando -
Number of replies: 0
Hi David,

There are two things that need to be moved to the new server: database (data and structure) and moodledata folder. These are the steps I followed recently and it worked fine:

1. Make a dump of your database. I used phpmyadmin, selected the database in left side, chose "export" from tabs on right side, selected all tables, clicked on all check boxes under "structure" and "data", checked "save file" checkbox, check the "gzip" box for compression and then hit go. It should save this file in your browser download folder.

2. Install same version of Moodle on new server as normal. This will create a new database.

3. Open the new database in phpmyadmin. Choose "SQL" tab, there should be a button to choose the old database file, check the "gzipped" box so it knows the compression used and then hit go.

4. You should get a successful message when all is done.

5. The last thing to do is place your old moodledate folder where you want it and make sure the config.php file in new install has the right filepath and name for this folder.

That should work. I found Moodle very easy to move.

Cheers,
Jason