I have access to a remote server with Magento 2 installation.

How do I move it to my local machine so I can test things out without breaking the live site?

Do I just download the magento 2 installation, export/import the database and change a few database connection settings?

1 Answer 1


Yes, it should work. You just need to follow simple steps:

1) Take Files/Folder backup and Database Backup

2) Set them up in your local installation

3) Make changes of website URL in core_config_data table in database. Replace current LIVE URL to your local URL

4) Update database connection credential in app/etc/env.php

5) Clear your caches and check if there aren't any custom redirection rule in .htaccess file. Adjust them if required.

It should make your local copy run. If you are facing problem, you should deploy your content once and also recompile your setup.

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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