Forums | Mahara Community
Transfer Mahara to new machine
18 September 2009, 10:36 AM
We've recently got a new server for our mahara install as our old one was running as a test on an older machine.
Are there step-by-step instructions on transfering users/uploads/ect to a new mahara install on a different machine?
20 September 2009, 3:40 PM
After closing the site, so no new content can be added (this can be as simple as disabling its apache vhost and reloading apache):
- Make a copy of your database (with pg_dump or mysql's dumper), and a copy of dataroot (tar or zip).
- Copy these to the new machine, extracting the dataroot where you want it to live, and restoring the database.
- Copy the config.php for your site, and make any appropriate changes (e.g. to database connection details).
- If the site is going to now have a new wwwroot, go into the database (with phpmyadmin, or the postgres/mysql shell etc.), and run this SQL:
UPDATE config SET value = 'http://[new-wwwroot]/' WHERE field = 'wwwroot';