# Moving Shopware 6 from one server to another

**URL:** <https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801>\
**Category:** Shopware 6 (English)\
**Created:** [24. Mai 2023 um 09:20 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801 "2023-05-24T09:20:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_f](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/david_f/32/23039_2.png) [@david\_f](https://forum.shopware.com/u/david_f)\
**Post date:** [24. Mai 2023 um 09:20 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/1 "2023-05-24T09:20:52Z")

</div>

Hi,

I would like to move my Shopware 6.4.20.0 (Com ed) app from one server to another.

To do this in version 5, I would have followed this procedure:  
Copy files and database (put them on new environment). (already done)  
Go to s\_core\_shops table and alter the host and hosts fields (if they changed). (this table does not exist in v6 - have not gone further)  
Go to config.php in the root directory of the shopware file and alter it for connecting the right database.  
(Deactivate cyphered Plug-Ins if the host changed)

But the above is no longer valid for v.6

The SALES\_CHANNEL\_DOMAIN table has the correct URL.

Could someone please provide or point me to an updated process?

Thank you!

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [25. Mai 2023 um 07:02 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/2 "2023-05-25T07:02:46Z")

</div>

Copy files and database, adjust the .env (url and composer, etc), change die url of your sales channel in the administration (backend should still work with a wrong url), clear cache.

Shopware might ask you to migrate plugin licenses.  
It is explained in the official documentation.

---

<div class="post-metadata">

**Author:** ![david\_f](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/david_f/32/23039_2.png) [@david\_f](https://forum.shopware.com/u/david_f)\
**Post date:** [26. Mai 2023 um 11:09 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/3 "2023-05-26T11:09:12Z")

</div>

Hi Max\_Shop

Thank you for taking the time to reply!

Both the database. and .env file seem correct. The 3 cells of the SALES\_CHANNEL\_DOMAIN have the correct URL.

The database reference and APP\_URL in the .env file also look okay.  
Can you give me an example of how the COMPOSER\_HOME should look?

Thanks again!

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [26. Mai 2023 um 14:13 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/4 "2023-05-26T14:13:28Z")

</div>

It must be the absolut path on the server to the composer installation, e.g.

`COMPOSER_HOME="/var/www/domain.com/var/cache/composer"`

---

<div class="post-metadata">

**Author:** ![david\_f](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/david_f/32/23039_2.png) [@david\_f](https://forum.shopware.com/u/david_f)\
**Post date:** [26. Mai 2023 um 21:02 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/5 "2023-05-26T21:02:16Z")

</div>

Thanks!

Although it looks different, it seems that the env file is correct. Based on the original installation, which works fine - but the cloned instance with updated host and server throw a 500 error (log: GET / HTTP/1.0" 500 997 „-“) for both frontend and admin.

Could there be some unique identifier that is not being verified?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [27. Mai 2023 um 09:11 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/6 "2023-05-27T09:11:11Z")

</div>

What about the error message in var/log/prod-2023-05-xx.log ?

---

<div class="post-metadata">

**Author:** ![david\_f](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/david_f/32/23039_2.png) [@david\_f](https://forum.shopware.com/u/david_f)\
**Post date:** [30. Mai 2023 um 14:44 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/7 "2023-05-30T14:44:32Z")

</div>

Sorry for the delayed response. The log is empty.  
The original instance on the first server has a populated log but this clone’s ‚public\_html \> var \> log‘ is empty.

I’m thinking of cloning the server again but this time moving the other application and keeping Shopware where it is - I know that this works, although it is not the solution I wanted.

---

<div class="post-metadata">

**Author:** ![david\_f](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/david_f/32/23039_2.png) [@david\_f](https://forum.shopware.com/u/david_f)\
**Post date:** [11. September 2023 um 13:47 UTC](https://forum.shopware.com/t/moving-shopware-6-from-one-server-to-another/99801/8 "2023-09-11T13:47:16Z")

</div>

I’ve marked the second post in this thread as the solution.

A few months after my original post, I used the host’s docker type copy function to create a new staging version from prod and following the same procedure as before and in post #2, this time it worked. There may be a difference in how the host creates clones / staging environments.
