I currently have moodle using bitnami and mysql and want to migrate to a newer version of Moodle I have on a different server.on the server i have installed the latest version of moodle and mariadb as my database.How do i migrate all my files over to the new site.
First, I don't run Bitnami ... so my qualfications/experience in doing what you desire is nada.
But ... can google ... just sharing info and links you will have to use for your purpose.
Bitnami installed it's own AMP stack + Moodle.
Documentation for Moodle on moodle.org (or in community forums)
probably won't have much on Bitnami specifics. So you, the bitnami user/admin
will have to figure out where it's installed and how to create backups
of code + data directory + get an sql dump of the current sites DB.
There is this for Bitnami
And looks like:
Migrate your Moodle installation
will be your starting point.
Key for you is to use the above to find locations of code, moodledata, and do the
***Using Bitnami's Upgrade Moodle as a resource to locate files:***
moodle code: /opt/bitnami/apps/moodle/htdocs/
Inside moodle code, a config.php file that will show the full path
to the location of moodledata.
But you are not migrating on same server but to a different server.
So if one doesn't know how to transfer those backups from current server
to new server, then you'll have to download those backups and upload them
to new server.
Once on new server without Bitnami, that's now under your hosting system there.
Moodle docs might come back into play.
Since you've already installed a new instance on new server the path of least resistance for you might be to simply make full course backups of old site (the Bitnami) ... and restore them to new site.
Depends upon the number of courses ... but even if a fairly large number might still be easier than migrating entire site.
Up to you of course.
Comment: kinda the price one pays when looking for the proverbial 'easy button' when it comes to open source software. Bitnami is easy to install (so I've heard), but when it comes to moodle, easy install is but tip of a large iceburg. And thus, one is better informed admin wise if installing manually.
Just one additional consideration ... plugins ... addons. If you used plugins/addons on old site, find compat versions and install them prior to restore of backups to new site.
Hopefully, you didn't go 'plugin nuts' (insert nut emoji here) cause one has the potential to be 'plugin sad' on new site.
thank you for your reply,will i be able to back up and restore users as well grades ?
Yes. But to be sure, check backup preferences in Site Admin menu.
Make one backup.
Download the backup.
Restore to new site and see.
The simplest way is copy whole folder from bitnami
in bitnami you can find your folder /opt/bitnami/apps/APPNAME/htdocs
just zip the whole htdocs folder and unzip it in your new server's webdirectory (eg: for apache2 server it's /var/www/html)
Now same import your database to the new server (mysql to mariadb, won't be any issue )
PS: don't forget to change DB credentials in the configuration file.
Hi i have tried this and i get a HTTP 500 error message when i try and access moodle
Did you copy the Moodledata folder (and all its contents) to the new server? That is critical.
Once you've done that and you still get errors turn Moodle Debugging up to the Developer level so that you see the error messages that get triggered. Those error message can help troubleshooting the real cause of the HTTP 500 messages. (HTTP 500 messages don't really mean anything specific, it's just the servers fancy way of saying there's a problem somewhere.)
You also need to backup and copy the entire Moodledata folder to the new server.
So 3 things need to be migrated:
- The Moodle code
- The Moodle database
- The Moodledata folder