• Home
  • /
  • Blog
  • /
  • How to Migrate Magento Website from One Server to Another Server

How to Migrate Magento Website from One Server to Another Server

Spread the love

how-to-migrate-magento-website-from-one-server-to-another-serverMagento 2.0 is a next generation e-commerce platform which is designed to offer the developers with more powerful toolsets so as to create powerful solutions for your website that accelerates merchant growth. Magento is the most powerful and popular e-commerce platform in Europe. It was originally launched by a California-based company Varien and was later sold to an America based company name eBay. Many magento development companies are solely specialized in building an online store with many customizations and additions to the website functionality.

Being a Magento developer you might feel the need to move the Magento e-commerce shop from one host server to another new host server from one location to the other location. Transferring Magento from one server to another is a very simple task once you come to know how it is actually done. Magento 2 is, probably, one of the most discussed topics in the Magento community. In general, Magento team is working to simplify the process of customization.

Full page cache will be available out of the box, as well as with the Varnish and Redis support. Refactored indexers won’t block processes any further as they will have to work in the background.

Improved indexers

New indexers cover the same functionality as previous enterprise versions, but have been revised to deliver faster query performance and more satisfactory updates.

Multiple users

Core improvements in the admin site allow for more admin users to create and update products while reducing data conflicts. Now here we are talking about how to migrate Magento 2.0 to a new server. Many times you just have to save the copy of your Magento 2.0 E-commerce store to another place just as a copy of insurance against any loss of data. Magento 2.0 is simply a new server and it requires you to have a simple and basic knowledge of PHP and Meganto2.0.

Here are some of the points you can take help from to migrate your Magento 2.0 store from one site to another.

What you can do is, take a look, you might have PHPMyAdmin or a similar tool that is capable of exporting your database that is included in the cPanel platform of your server. It can be a time taking the task as it depends on over the size of your Magento 2.0 store. If it is possible for you must create a Zip achieve folder for your file before downloading them. First of all, go to the server of your file manager and install Magento 2.0 directly and create a zip folder of your files and folders that you have downloaded. Now you have to download the uploaded Zip file to your new server and simply extract it to the new desired destination folder on a new server.

Now, after you have transferred the Magento 2.0 file, you have to transfer or import the database to new server. First of all, go to the PHPMyAdmin of the database of your new server and create a new database. Next step is to assign credentials to the database to create username and password for it and then import the database .sql file into the new database.

Your next step is to edit Magento2.0 configuration as we have already exchanged the files between the two servers, now we have to configure Magento 2.0 store with the new server. Here, first of all, you have to edit the apps that are an env.php file with the new Magento 2 database configuration according to your new server. Now follow the following steps below to alter some lines into your env.php file.

Here, Host is the name of database host. One of the most commonly used host is “localhost”.

– Dbname is the name of the database.

– Username is the username that has full privileges to your new database.

– The password is the password that a particular database uses.

Here now you have a new server with the new domain name, what you have to do is to replace the old server name with new domain name. Now what you need to do is to modify the value of web secure base URL and web secure base URL into the core configuring data table. Now enter the new domain name into the value column of both the records.

Last and the final step is to clear Magento 2 cache. You can do this by deleting everything from the cache inside your Magento 2 directory or also you can use the CLI command.

Thus, that was all you were required to do. Now your Magento store must be running in a proper way and with fluent speed on the new server.

There is also some another process available for the transfer of Magento from one server to the other but the condition is that the both Magento setups must have the same version.

What you have to do is to go to your test site backend and refresh cache by system > cache management. Then take a backup of your test site PHP my admin database by exporting database into “dbname.sql.zip” format or any other suitable background that you prefer.

Next step for you is to take a backup of below folders on the test site to your system. This step consists of the following:

– Contents within the frontend folder (app\design\frontend)

– Contents within the frontend folder (skin\frontend)

– Catalog and other required folders (media\catalog)

Install a new Magento store into the new server.

Go to the new server PHP my admin database and delete all the tables. Now your job is to unzip backup database on the first step “dbname.sql.zip” and import “dbname. SQL” file to the new database in the second step.

– Copy below folders to their respective new Magento server directory

– Contents inside frontend folder to app\design\frontend.

– Contents inside frontend folder to skin\frontend.

– Catalog & other required folders to media\catalog, xx\

– Edit base URL mentioning table (core_config_data table) on the new Magento.

Go to your sites admin panel System > Cache management > Select all & disable cache management. And also index data by going to System”>Index Management. Select fields in Status” ‘REINDEX REQUIRED’, then choose ‘Reindex Data’ from the drop down and click Submit.

Now you can go and Check your new Magento store. Magento 2 is the next-generation e-commerce platform designed to give developers a more powerful toolset to create innovative solutions that accelerate merchant growth. Magento didn’t become this popular by just being another platform. It is open source character, the wide range of possibilities and the immense user and development base make sure that Magento is the best, or at least be among the best.

Author Bio: – Shara DJ, mid-level programmer working for magento website development company, Pattronize InfoTech. My favourite playground happens to be Magento but i do like others as well. I write some technical topics in my free time. You can contact me on Twitter, LinkedIn and Facebook.

Stanislaus Okwor is a Web Designer / Developer based in Lagos - Nigeria. He is the Director at Stanrich Online Technologies. He is knowledgeable in Content management System - Wordpress, Joomla and PHP/MySQL etc

Leave a Reply

WhatsApp chat
Verified by MonsterInsights