Moving local setup to live server.

Moving local setup to live server.

by Kyle Goliath -
Number of replies: 6

Good Day Moodle 

Hope all is well?

I do apologies for this but I am beginner level here. Just started 2 weeks ago.

I am having trouble understanding what I need to do to move my locally created Moodle site to a live server. (Running Moodle 3.2.2)

I am doing this for the first time, I have my domain, hosting service, access to hosting service (cPanel). I have created a complete site with courses and users. I'm not sure if I need fileZilla either.


What I dont understand is: 

1. Within the hosting do I need to install a fresh copy of moodle first before I can transfer files over?

2. How do I backup the local MySQL database thats needed to be restored on new site and where exactly do i restore this file?

3. The MoodleData thats needs to be copied to the from my local folder to the live server, can this be done with FileZilla? 

4. The config.php file I can locate but not sure what information needs to be changed and where this file needs to go once it is changed.

5. Updating the links has also got me stumped. 


I read the Moodle Documentation but because Im new to this I dont know where to go or what to do.

Ive got a few Moodle books  and videos but i cant find help for migration of local setup to live server.

I am even willing to TeamViewer with somebody if it would be better to show me. 


Again I apologies for this and am grateful to anyone willing to help me out.

Thank you in advance.

Kyle

Average of ratings: -
In reply to Kyle Goliath

Re: Moving local setup to live server.

by Luis de Vasconcelos -

It seems like this a new Moodle site so I would not bother with a site migration. Rather, create a new blank Moodle site on your production server so that you have a nice clean slate to start with. Then, when the production site is all set up, backup the courses that you created on the local Moodle site. Then take those Moodle course backup files (the .mbz files) and restore them as new courses on the production site.

That will give you a nice clean production site.

See:
https://docs.moodle.org/32/en/Backup_and_restore_FAQ
https://docs.moodle.org/32/en/Backup

Average of ratings: Useful (1)
In reply to Luis de Vasconcelos

Re: Moving local setup to live server.

by Kyle Goliath -

Hi Luis

Thanks for the quick response.

This would however require repopulating of the users list and application of my theme and all the administration that goes with it?

or can these settings be transferred as well?

In reply to Kyle Goliath

Re: Moving local setup to live server.

by Usman Asar -
Picture of Plugin developers Picture of Testers

Kyle, You can transfer your site from local to remote, without even creating the new site on remote server, filezilla can be used, but it will be 2 zipped folders and a database backup file (uploaded via PHPMyAdmin) so you can skip filezilla part, CPanel has ability to upload the files as well.

now comes a BUT, you mentioning moodle version 3.2.2, unless you have installed it already on your remote server and its working fine, chances are that your hosting wont support barracuda table format, and since version 3.1.5+ and 3.2.2+ now table conversion is required before you do installation, prior to that it was recommended only.

I have once created a few videos for few members, telling how to upgrade and transfer moodle, should you wish to view them,  here are the links, though first few points to upgrading moodle, but can always be helpful.

1: http://www.screencast.com/t/7di1TIv9NH

2: http://www.screencast.com/t/isCbx6rnVd

3: http://www.screencast.com/t/QfsROwJCz

4: http://www.screencast.com/t/p59D8pnX8h

5: http://www.screencast.com/t/BKK0rRLd1

6: http://www.screencast.com/t/ZtdiUTSrItGX

and for creating duplicates and moving moodle this video below

http://www.screencast.com/t/aLYYluO8qs

let me know if those above are sufficient or you still need more help.

In reply to Usman Asar

Re: Moving local setup to live server.

by Kyle Goliath -

Thank you Usman


My Moodle is currently up-to-date. Is this okay? and I have not installed any Moodle on my remote server.

In reply to Kyle Goliath

Re: Moving local setup to live server.

by Usman Asar -
Picture of Plugin developers Picture of Testers

Kyle, you can give a try, as small possibility would be that it will still let your moodle run on remote server with warning to convert the tables into barracuda format. As I have recently tried installing from scratch, a latest moodle built 3.2.2+ and it wasnt letting me pass the requirement stage asking for tables to be converted into Barracuda, and reading further I came to know that its now required since moodle 3.1.5+ and 3.2.2+.

which hosting is that you are hosting your moodle on? as so far I am not aware of ANY that will convert DB tables into Barracuda on shared accounts (of course you can on VPS or Dedicated), but, then there is no harm asking your hosting provider if they can assist.

In reply to Usman Asar

Re: Moving local setup to live server.

by Kyle Goliath -

A hosting company in South Africa, Linux hosting package and I will ask them for assistance as well.


Thanks Usman