3

I'm a newbie in Craft CMS. I need to make changes in an existing craft website which is with one hosting platform. The site was previously managed by another developer. I need to migrate to a new hosting platform and i would like to know what all credentials i would need to obtain to perform this task and how i can migrate it?

  • would be nice of you to accept my answer. Or are there things that need to be cleared up? – Florian Mar 7 '16 at 19:06
  • I have followed these instructions but after the site is back up I am seeing what looks like the original theme for Craft CMS. I have a few licensing issues in the backend of the site. Is this likely to cause the problem?: - You’re running Craft Pro with a Craft Solo license. - The license located at config/license.key belongs to xxxx.com - Your Commerce license key is invalid. This is my first time using Craft so bare with me being an absolute novice. – reececropley Jun 26 '18 at 11:05
4

You need a copy of the database which you can either export via Craft's Control Panel or via phpMyAdmin or a similar database management tool.
You need these folders:

  • craft/templates
  • craft/translations (if it's multi-language)
  • craft/plugins
  • craft/config
  • public

They might be called differently, I am writing this as if the previous developer followed the installation instructions.

Upload a fresh copy of Craft to the new server.

Import the database.

Replace the stock folders with the ones you got from the other install.

Make sure db-credentials are correct in craft/config/db.php. Make sure all paths are correct in craft/config/general.php.

Make sure the folders that need to be writeable are writeable.

Generally speaking your site should be running now.

  • Note that a fresh copy of Craft will not work with backed database if that database was running on some of previous Craft’s versions. Before making back up make sure that you have Craft’s latest version. – Dom Krulak Jul 2 '18 at 7:43
3

The accepted answer is a good one, but I thought I'd add something as food for thought. If you set up your workflow such that:

...you can become a Digital Nomad. I realize it seems like a lot of tooling, but the payoff is exactly the question being answered here.

If you set things up in this manner, it's trivial to move to a new VPS because all of the ingredients that go into making the website are neatly compartmentalized, and can be deployed without any hassle.

Future-you will thank you for setting things up so that not only is your day to day workflow easier and more fault-tolerant, but also when you move to a new VPS, that's trivial as well.

While you're at it, set up backups as per the Mitigating Disaster via Website Backups article too.

Aesop was wise; it's an ant & grasshopper thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.