# Dev server

**URL:** <https://forum.shopware.com/t/dev-server/35007>\
**Category:** International (English Only)\
**Tags:** general\
**Created:** [3. März 2016 um 14:51 UTC](https://forum.shopware.com/t/dev-server/35007 "2016-03-03T14:51:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 14:51 UTC](https://forum.shopware.com/t/dev-server/35007/1 "2016-03-03T14:51:07Z")

</div>

Hi

What we need: full copy of production server as dev server.

Full I mean with all working licencies.

Shopware support can’t help, maybe anybody here can?

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [3. März 2016 um 15:08 UTC](https://forum.shopware.com/t/dev-server/35007/2 "2016-03-03T15:08:00Z")

</div>

Create a subdomain where you clone the shopfiles and&nbsp;database. Demand for a&nbsp;second IP for this subdomain. Now config&nbsp;the Main Domain&nbsp;as&nbsp;Alias-Domain.&nbsp;Config your local host file to the “secondIP&nbsp;[domainame.com](http://domainame.com) [www.domainname.com](http://www.domainname.com)”

---

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 15:14 UTC](https://forum.shopware.com/t/dev-server/35007/3 "2016-03-03T15:14:37Z")

</div>

> [@brettvormkopp schrieb:](https://forum.shopware.com/profile/6611/brettvormkopp "brettvormkopp")
> 
> Now config&nbsp;the Main Domain&nbsp;as&nbsp;Alias-Domain.&nbsp;Config your local host file to the „secondIP&nbsp;domainame.com [www.domainname.com](http://www.domainname.com)“

Hi

Can you, please, explain this?&nbsp;

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [3. März 2016 um 15:48 UTC](https://forum.shopware.com/t/dev-server/35007/4 "2016-03-03T15:48:16Z")

</div>

In the&nbsp;Host-file on&nbsp;your new „Domain“ is&nbsp;„[subdomain.example.com](http://subdomain.example.com)“ with a own IP&nbsp;and the AliasDomain should be the main Domain „[example.com](http://example.com)“. Now you need to say to your local laptop: \>\>go to this IP, it is the Domain „[example.com](http://example.com)“\<\< while in reality it is the IP of „[subdomain.example.com](http://subdomain.example.com)“.

---

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 15:53 UTC](https://forum.shopware.com/t/dev-server/35007/5 "2016-03-03T15:53:00Z")

</div>

But how I can create full &nbsp;copy of production server? I copy all files and db but licencies not work

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [3. März 2016 um 15:55 UTC](https://forum.shopware.com/t/dev-server/35007/6 "2016-03-03T15:55:34Z")

</div>

the licencies will work with that model because you have the same domain.

---

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 15:57 UTC](https://forum.shopware.com/t/dev-server/35007/7 "2016-03-03T15:57:56Z")

</div>

For dev I have domain [dev.domail.com](http://dev.domail.com)

For production I have [domail.com](http://domail.com)

And licencies not work

---

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 18:34 UTC](https://forum.shopware.com/t/dev-server/35007/8 "2016-03-03T18:34:38Z")

</div>

Can you help me?

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [3. März 2016 um 18:45 UTC](https://forum.shopware.com/t/dev-server/35007/9 "2016-03-03T18:45:30Z")

</div>

@Maksim Do you have Windows or Mac?

If your licenses are only for your production domain eg. [domain.com](http://domain.com) and you want to get these licenses working you have to „fake“ the domain with your hosts file on your local system.

I would suggest you to install something like xampp or mamp. Then you add your production domain in xampp/mamp.

This way you „fake“ the domain. So if you then go to [domain.com](http://domain.com) your computer loads your local dev installation.

Hope you understand what i`m talking about&nbsp; ![Angry-Face](http://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/angry-face.png "Angry-Face")

---

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 18:52 UTC](https://forum.shopware.com/t/dev-server/35007/10 "2016-03-03T18:52:04Z")

</div>

Ok, but this for local server.

What about remote linux server? Can I made dev server with url [dev.domain.com](http://dev.domain.com)?

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [3. März 2016 um 19:37 UTC](https://forum.shopware.com/t/dev-server/35007/11 "2016-03-03T19:37:58Z")

</div>

@Maksim The only way on a remote server would be to copy you production shop to a sub directory eg. [domain.de/devinstallation](http://domain.de/devinstallation)

Then the licenses are also working for your dev installation since its on the same domain.

---

<div class="post-metadata">

**Author:** ![Maksim](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Maksim](https://forum.shopware.com/u/Maksim)\
**Post date:** [3. März 2016 um 19:43 UTC](https://forum.shopware.com/t/dev-server/35007/12 "2016-03-03T19:43:47Z")

</div>

But after copy when I open [domain.com/dev](http://domain.com/dev) browser redirect me on [domain.com](http://domain.com)

Can you help me with this?

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [3. März 2016 um 19:47 UTC](https://forum.shopware.com/t/dev-server/35007/13 "2016-03-03T19:47:02Z")

</div>

Of course you have to change the config.php from [domain.com/dev](http://domain.com/dev) to your dev database. Furthermore go to the database and change the URL/host of the shop in the table s\_core\_shops to [domain.com/dev](http://domain.com/dev)

That sohuld do the trick.
