# Wie kann ich die PHP-Version der Shopware-Vagrant-Box ändern?

**URL:** <https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258>\
**Category:** Shopware Academy\
**Tags:** shopware-das-handbuc\
**Created:** [6. März 2017 um 10:04 UTC](https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258 "2017-03-06T10:04:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pham](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@pham](https://forum.shopware.com/u/pham)\
**Post date:** [6. März 2017 um 10:04 UTC](https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258/1 "2017-03-06T10:04:43Z")

</div>

Hallo zusammen,

ich habe die shopware vagrant box zusammen mit phpStorm als Entwicklungsumgebung eingerichtet. Wie im shopware - Handbuch für Entwickler beschrieben.&nbsp;

Wenn ich aber das backend über &nbsp;[http://33.33.33.10/shopware/backend/](http://33.33.33.10/shopware/backend/)&nbsp;&nbsp;aufrufen möchte kommt folgender Fehler:&nbsp;

Auf Ihrem Server läuft PHP version 5.5.9-1ubuntu4.21, Shopware 5 benötigt mindestens PHP 5.6.4

Bei meiner Suche bin ich dann auf diese Seite&nbsp;gestoßen:&nbsp;

[https://github.com/shopwareLabs/shopware-vagrant](https://github.com/shopwareLabs/shopware-vagrant)

Liefert folgende Infos:&nbsp;

Make sure vagrant is at least at version 1.8:

```
$ vagrant -v

```

The following PHP Versions are installed by default:

- PHP 5.6
- PHP 7.0
- PHP 7.1

Call one of the following commands to change the PHP Version:

```
$ changephp_5.6
$ changephp_7.0
$ changephp_7.1

```

This will change the PHP Version used by the Apache webserver as well as the Version of the&nbsp;`php`&nbsp;command.

You can also call the PHP versions directly using their full path

```
$ /usr/bin/php5.6 -v
$ /usr/bin/php7.0 -v
$ /usr/bin/php7.1 -v

```

Bei mir ist aber anscheinend die Php-version 5.9.9 installiert. (Nicht 5.6, nicht 7.0 und nicht 7.1)

Der Befehl $ vagrant -v funktioniert und sagt mir das ich die Vagrant-Version 1.9.2 installiert habe.

Die anderen Befehle, zum wechseln der php-Version funktionieren leider nicht.

changephp\_7.1 liefert: command not found /usr/bin/php7.1 -v liefert: no such file or directory&nbsp;

Mit allen anderen php-Versionen hab ich die Befehle&nbsp;auch probiert. Mit gleichem Ergebnis.

Ich wäre wirklich sehr dankbar wenn mir da jemand weiterhelfen könnte.

Vielen Dank

---

<div class="post-metadata">

**Author:** ![Ico](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@Ico](https://forum.shopware.com/u/Ico)\
**Post date:** [21. März 2017 um 15:08 UTC](https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258/2 "2017-03-21T15:08:23Z")

</div>

Habe das gleiche Problem ☹

---

<div class="post-metadata">

**Author:** ![pham](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@pham](https://forum.shopware.com/u/pham)\
**Post date:** [21. März 2017 um 15:40 UTC](https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258/3 "2017-03-21T15:40:46Z")

</div>

Hi!

wenn du beim Klonen des Repository mit dem Befehl,:

git clone --branch 0.1 [GitHub - shopwareLabs/shopware-vagrant: A Vagrant setup ready for shopware development](https://github.com/shopwareLabs/shopware-vagrant)

das --branch 0.1 weglässt, sollte es funktionieren.&nbsp;

Also leider nochmal von vorne und das Repository so klonen:&nbsp;

git clone [GitHub - shopwareLabs/shopware-vagrant: A Vagrant setup ready for shopware development](https://github.com/shopwareLabs/shopware-vagrant)

Hat bei mir funktioniert!&nbsp;

---

<div class="post-metadata">

**Author:** ![pham](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@pham](https://forum.shopware.com/u/pham)\
**Post date:** [21. März 2017 um 15:42 UTC](https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258/4 "2017-03-21T15:42:46Z")

</div>

Ohne das --branch 0.1 verwendest du dann den aktuellen master branch.&nbsp;

---

<div class="post-metadata">

**Author:** ![Thomas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomas/32/8167_2.png) [@Thomas](https://forum.shopware.com/u/Thomas)\
**Post date:** [21. März 2017 um 20:37 UTC](https://forum.shopware.com/t/wie-kann-ich-die-php-version-der-shopware-vagrant-box-andern/44258/5 "2017-03-21T20:37:06Z")

</div>

> **[Wie kann ich die PHP Version der Vagrant Shopware Box ändern?](https://forum.shopware.com/discussion/comment/189995/)**
>
> @Thomas schrieb: Wenn ich mich richtig erinnere wird die getaggte Version im Buch beschrieben. Verwende bitte den aktuellen master - damit hat es gerade bei mir unter Linux einwandfrei funktioniert. Du verwendest immer noch die getaggte Version....
