# Installation mit composer  app/install.sh

**URL:** https://forum.shopware.com/t/installation-mit-composer-app-install-sh/56257
**Category:** Installation/Einstieg
**Created:** [6. November 2018 um 16:54 UTC](https://forum.shopware.com/t/installation-mit-composer-app-install-sh/56257 "2018-11-06T16:54:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![grelf111](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@grelf111](https://forum.shopware.com/u/grelf111)
#### Post date: [6. November 2018 um 16:54 UTC](https://forum.shopware.com/t/installation-mit-composer-app-install-sh/56257/1 "2018-11-06T16:54:43Z")

</div>

Hallo,

wenn ich die Installation mit composer mache, läuft das sauber durch bis zum Finalen app/install.sh.

Die Werte für DB etc. werden abgefragt, danach kommt diese Fehlermeldung.

```
PHP Parse error: syntax error, unexpected '[', expecting ')' in /xxx/yyy.zzz.de/app/autoload.php on line 12

```

Hat jemand eine Tipp?

Danke

---

<div class="post-metadata">

### Author: ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)
#### Post date: [6. November 2018 um 17:00 UTC](https://forum.shopware.com/t/installation-mit-composer-app-install-sh/56257/2 "2018-11-06T17:00:07Z")

</div>

Welche PHP Version nutzt du für die CLI ? Einfach mal php -v eingeben, muss mindestens PHP 5.6 sein.

LG Andre

---

<div class="post-metadata">

### Author: ![grelf111](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@grelf111](https://forum.shopware.com/u/grelf111)
#### Post date: [6. November 2018 um 17:27 UTC](https://forum.shopware.com/t/installation-mit-composer-app-install-sh/56257/3 "2018-11-06T17:27:04Z")

</div>

Guter Tipp!

Das ist ein Host mit verschiedenen PHP Versionen. Für die Shell habe ich ein php72 verlinkt und das bringt auch die richtige Version.

Nur php -v bringt php 5.3

Der Versuch mit einem alias in der .profile

```
alias php="/usr/local/php7.2/bin/php"

```

gibt mir in der Shell die richtige Version, hat aber leider nichts gebracht. Anscheinend startet das Programm trotzdem immer nur die alte Version.

Muss ich mal den Hoster fragen…

Danke  
&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![grelf111](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@grelf111](https://forum.shopware.com/u/grelf111)
#### Post date: [8. November 2018 um 10:29 UTC](https://forum.shopware.com/t/installation-mit-composer-app-install-sh/56257/4 "2018-11-08T10:29:46Z")

</div>

So, Hoster hat die standardversion jetzt auf 5.6 gesetzt

```
php -v

PHP 5.6.38 (cli) (built: Sep 24 2018 10:20:46)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.1, Copyright (c) 2002-2016, by ionCube Ltd.
    with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies

```

&nbsp;

und soweit gut, die Fehlermeldung hat sich weiter ‘entwickelt’

```
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' 
in /xxx/yyy.zzz.de/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php 
on line 50

```

&nbsp;

Und jetzt?!?
