# php\_network\_getaddresses: getaddrinfo failed: Name or service not known  

**URL:** <https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781>\
**Category:** Installation/Einstieg\
**Created:** [15. März 2018 um 08:41 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781 "2018-03-15T08:41:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppeter](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@ppeter](https://forum.shopware.com/u/ppeter)\
**Post date:** [15. März 2018 um 08:41 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/1 "2018-03-15T08:41:15Z")

</div>

Hallo!  
&nbsp;

bei dem Ticket&nbsp;[https://forum.shopware.com/discussion/comment/217868#](https://forum.shopware.com/discussion/comment/217868#)

hab ich dann diesen Befehl ausgeführt:

ok mach mal ./psh.phar docker:start,docker:ssh und dann ./psh.phar init

nach dem Befehl&nbsp;/psh.phar init

gibt es hier einen Fehler, gibt es dazu noch eine Lösung?

&nbsp;

Danke

&nbsp;&nbsp; &nbsp;&nbsp; [PDOException] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; SQLSTATE[HY000] [2002] php\_network\_getaddresses: getaddrinfo failed: Name or service not known &nbsp;

&nbsp;&nbsp; [PDOException]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; PDO::\_\_construct(): php\_network\_getaddresses: getaddrinfo failed: Name or service not known &nbsp;

&nbsp;&nbsp;&nbsp;install:release [-r|–release RELEASE] [-i|–install-dir INSTALL-DIR] [–db-host DB-HOST] [–db-port DB-PORT] [–db-socket DB-SOCKET] [–db-user DB-USER] [–db-password DB-PASSWORD] [–db-name DB-NAME] [–no-skip-import] [–shop-locale SHOP-LOCALE] [–shop-host SHOP-HOST] [-p|–shop-path SHOP-PATH] [–shop-name SHOP-NAME] [–shop-email SHOP-EMAIL] [–shop-currency SHOP-CURRENCY] [–skip-admin-creation] [–admin-username ADMIN-USERNAME] [–admin-password ADMIN-PASSWORD] [–admin-email ADMIN-EMAIL] [–admin-locale ADMIN-LOCALE] [–admin-name ADMIN-NAME]

Execution aborted, a subcommand failed!

&nbsp;

danke

lg

Peter

---

<div class="post-metadata">

**Author:** ![derwunner](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@derwunner](https://forum.shopware.com/u/derwunner)\
**Post date:** [15. März 2018 um 11:38 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/2 "2018-03-15T11:38:49Z")

</div>

Hallo,

&nbsp;

der Fehler sagt aus, dass eine Domain unter den angegeben Namen nicht zu erreichen ist. Er versucht hier den Domain Namen zu einer IP aufzulösen und das klappt nicht, weil es die Domain nicht gibt.

&nbsp;

&nbsp;

MFG

&nbsp;

derwunner

---

<div class="post-metadata">

**Author:** ![ppeter](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@ppeter](https://forum.shopware.com/u/ppeter)\
**Post date:** [15. März 2018 um 11:53 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/3 "2018-03-15T11:53:32Z")

</div>

herzlichen Dank, d. h. ich muss eine Domain vorschalten sonst geht es nicht

d. h. ich brauche eine Domain?

kann ich auch eine IP verwenden, kann man das irgendwo konfigurieren oder funktioniert eben nur mit einer Domain

und wenn eine Domain, wo kann ich die konfigurieren oder genügt es einfach die VPS in der DNS mit der Domain zu verknüpfen?

&nbsp;

danke

---

<div class="post-metadata">

**Author:** ![ppeter](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@ppeter](https://forum.shopware.com/u/ppeter)\
**Post date:** [16. März 2018 um 14:36 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/4 "2018-03-16T14:36:59Z")

</div>

> [@derwunner schrieb:](https://forum.shopware.com/profile/25468/derwunner "derwunner")
> 
> Hallo,
> 
> &nbsp;
> 
> der Fehler sagt aus, dass eine Domain unter den angegeben Namen nicht zu erreichen ist. Er versucht hier den Domain Namen zu einer IP aufzulösen und das klappt nicht, weil es die Domain nicht gibt.
> 
> &nbsp;
> 
> &nbsp;
> 
> MFG
> 
> &nbsp;
> 
> derwunner

&nbsp;

hallo, hab jetzt eine Domain eingebunden

[http://jove.ovh](http://jove.ovh)

geht aber noch immer nicht nach dem Befehl

wie kann ich diesen Fehler beheben?danke

root@vps18066:~/shopware-docker# ./psh.phar init

&nbsp;

&nbsp;

**###################**

**Starting Execution of ‚init‘** (‚dev-ops/common/actions/init.sh‘)

&nbsp;

&nbsp;

(1/2) Starting

**\> rm -rf ./shopware**

&nbsp;&nbsp; &nbsp;

(2/2) Starting

**\> ./sw.phar install:release -r latest -i ./shopware --db-host mysql --db-user app --db-password app --db-name shopware --shop-host 10.100.111.46**

&nbsp;&nbsp; &nbsp;Downloading release

&nbsp;&nbsp; &nbsp;Unzipping archive

&nbsp;&nbsp; &nbsp;Creating database shopware

&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; [PDOException] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; SQLSTATE[HY000] [2002] php\_network\_getaddresses: getaddrinfo failed: Name or service not known &nbsp;

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; [PDOException]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; PDO::\_\_construct(): php\_network\_getaddresses: getaddrinfo failed: Name or service not known &nbsp;

&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;install:release [-r|–release RELEASE] [-i|–install-dir INSTALL-DIR] [–db-host DB-HOST] [–db-port DB-PORT] [–db-socket DB-SOCKET] [–db-user DB-USER] [–db-password DB-PASSWORD] [–db-name DB-NAME] [–no-skip-import] [–shop-locale SHOP-LOCALE] [–shop-host SHOP-HOST] [-p|–shop-path SHOP-PATH] [–shop-name SHOP-NAME] [–shop-email SHOP-EMAIL] [–shop-currency SHOP-CURRENCY] [–skip-admin-creation] [–admin-username ADMIN-USERNAME] [–admin-password ADMIN-PASSWORD] [–admin-email ADMIN-EMAIL] [–admin-locale ADMIN-LOCALE] [–admin-name ADMIN-NAME]

&nbsp;&nbsp; &nbsp;

&nbsp;&nbsp; &nbsp;

**Execution aborted, a subcommand failed!**

&nbsp;

root@vps18066:~/shopware-docker#

---

<div class="post-metadata">

**Author:** ![kurzi](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kurzi](https://forum.shopware.com/u/kurzi)\
**Post date:** [28. September 2018 um 07:50 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/5 "2018-09-28T07:50:37Z")

</div>

Hi zusammen,

ist hierfür schon eine Lösung gefunden worden?

---

<div class="post-metadata">

**Author:** ![kurzi](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kurzi](https://forum.shopware.com/u/kurzi)\
**Post date:** [28. September 2018 um 08:01 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/6 "2018-09-28T08:01:59Z")

</div>

ok mach mal ./psh.phar docker:start,docker:ssh und dann ./psh.phar init

hat bei mir geholfen.

---

<div class="post-metadata">

**Author:** ![bratwurst](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bratwurst](https://forum.shopware.com/u/bratwurst)\
**Post date:** [9. März 2020 um 12:40 UTC](https://forum.shopware.com/t/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known/51781/7 "2020-03-09T12:40:52Z")

</div>

Ich habe das gleich Problem nach einem Update. Wo muss ich diese Befehle eingeben? In einer SSH Shell bekomme ich nur die Meldung, dass die Befehle unbekannt sind.
