Upload Moodle website from localhost to live server

Upload Moodle website from localhost to live server

by Uzair Haider -
Number of replies: 2

Hi, I just created a LMS on localhost. Now I want to upload it on the live server. How to do it?

EDITED: I already installed moodle on my server. 

Average of ratings: -
In reply to Uzair Haider

Re: Upload Moodle website from localhost to live server

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Do you mean that you want to transfer a course? Or the entire site?  

1.  If a course, backup the course, download the backup file, restore it to new site.

2.  If the entire site, look at the migration documentation.

In reply to Uzair Haider

Re: Upload Moodle website from localhost to live server

by kamesh veerachamy -

From localserver

1) First you take the moodle source files backup.

2) Export the Database sql file.

3) Take the moodle data backup.


To live site.

1) Create new database,then import the database.

2) Upload the moodle source files to public_html or  www folder.

3) Upload the moodledata files to outside of public_html or www folder.

4)  Update the moodle url,path,DB details in configuration file.

(config.php)

5) Login as administrator, then go to "Site Administration >> Development >> Purge all caches".


click this link and click the purge all caches button.

now you can see the site in live.