1

I would like to change the server and move Magento 2.1.0 from server A to server B without any difference in data, theme, extensions, and configuration. only the domain will be a change from www.domaina.com to www.domainb.com. What is the best way to transfer it? I'm using Magento 2 CE.

edit: now I decide to buy a new theme. so, I install Magento CE 2.2.0 from application wizard in Plesk but when I import database I can't enter to the dashboard.

edit: after transfer to a new server and import database, I git this error when trying to enter to the dashboard: There has been an error processing your request. Unable to unserialize value

0

2 Answers 2

1

Easy Steps:

  1. Backup your database
  2. Compress all file
  3. Migrate all to new server
  4. Import the database
  5. Open local.xml location : app/etc/local.xml
  6. Change following line 43 to 46, That is related to database configuration
    <host><![CDATA[localhost]]></host> <username><![CDATA[root]]></username> <password><![CDATA[]]></password> <dbname><![CDATA[youdatabase_name]]></dbname>
  7. Open database and move table core_config_data change the value of this 2 items web/unsecure/base_url web/secure/base_url
    to this value www.domainb.com
  8. Delete var dir
  9. Reload [done]
3
  • is there a video tutorial? Commented Sep 21, 2017 at 7:01
  • and how tp compress all file? which files? Commented Sep 21, 2017 at 7:11
  • why did you note to delete var folder? Commented Oct 20, 2017 at 20:35
0

An overview:

1/ Backup your database

2/ Backup your media

3/ Deploy your code from a code archive or your automatic deployment tool

4/ Copy all your media

5/ Update your configuration (Mysql, Redis, ElasticSearch) from env.php

6/ Import your database

7/ Execute magento cli commands : deploy statics / compile code / set production mode / reindex / generate image resize if you do not backup the generated product image variations / flush cache

8/ Test your site

Let me know if you need more details

10
  • yes, I need more details. or can you explain with an image or is there a video tutorial? Commented Sep 22, 2017 at 11:34
  • Sorry I do not have time to do this stuff. But if you have precise question, I can detail it. Commented Sep 22, 2017 at 13:44
  • how to backup a media? Commented Sep 23, 2017 at 9:33
  • You need to backup the pub/media folder Commented Sep 25, 2017 at 6:19
  • steps 1, 2, 4 and 6 are done. Commented Oct 17, 2017 at 8:10

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.