A quick way to move an installation

I’ve joined the forum to find out how to move an existing installation and couldn’t find anything up to date apart from a pointer to a third party site, so here’s a quick way to do it, I’m also open to other suggestions if I’ve missed anything out. I’m assuming that PHP and a web server are set up.

  1. Set up your new database user and database.
  2. Dump the database.
  3. Copy all files to the new host.
  4. Make sure they are all owned by the destination host user.
  5. Get the old APP_KEY value from .env and keep it safe
  6. Connect to the new site
  7. Go through the setup process (it would be good if there was a way of bypassing this)
  8. Drop and recreate the database
  9. Import the existing database
  10. Replace the APP_KEY value in .env with the existing APP_KEY value.

You should be able to log in with your existing user and password and all records should be restored. Don’t forget to migrate the cron job, and also your link to inmanage.sh and INM_BASE_DIRECTORY in .inmanage/.env.inmanage if any of your paths have changed.

Hi,

Thanks for sharing this!

Note: rather than copy the old files we recommend installing a new copy of the app on the new server using the release tar file.

1 Like

Thanks, I’ve run inmanage.sh update to bring it up to date.

Hi … this is an automated process and described in the docs:

Cheers!