Forums | Mahara Community

Support /
Transfer Mahara to new machine

anonymous profile picture
Deleted user
Posts: 2

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?

anonymous profile picture
Deleted user
Posts: 1643

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):

  1. Make a copy of your database (with pg_dump or mysql's dumper), and a copy of dataroot (tar or zip).
  2. Copy these to the new machine, extracting the dataroot where you want it to live, and restoring the database.
  3. Copy the config.php for your site, and make any appropriate changes (e.g. to database connection details).
  4. 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';
That should just about do it Smile


2 results