Showing results for 
Search instead for 
Did you mean: 

Moving Magento 2.2.8 to another server

Moving Magento 2.2.8 to another server

I have followed the guides to backup the database and the files, moved it to the new server, modified env.php but when I go to the site it just comes up with a new site coming soon default page.


What am I missing?


Re: Moving Magento 2.2.8 to another server

Check after applying the below commands.
php bin/magento cache:flush
php bin/magento cache:clear
Thank you.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Moving Magento 2.2.8 to another server

First you need to move your magento instance and database to you new server which I assume you did. 

Next is to change the name in env.php (database name) if its not same.

Now open the table core_config_data inside there find path web/secure/base_url and web/unsecure/base_url change the value to you new url.

Now run setup:upgrade and content deploy 

Re: Moving Magento 2.2.8 to another server

Hi @teamwebrrd7c4f,


Please delete the generated/code directory rm -rf generated/code


and run the following command:


php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush


Hope this can help you! Let me know if you need further assistance.


If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: