# CLI-Konsole über Putty

**URL:** <https://forum.shopware.com/t/cli-konsole-uber-putty/54391>\
**Category:** Administration\
**Created:** [2. August 2018 um 07:38 UTC](https://forum.shopware.com/t/cli-konsole-uber-putty/54391 "2018-08-02T07:38:56Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![shop-betreiber](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shop-betreiber](https://forum.shopware.com/u/shop-betreiber)\
**Post date:** [8. August 2018 um 19:29 UTC](https://forum.shopware.com/t/cli-konsole-uber-putty/54391/21 "2018-08-08T19:29:41Z")

</div>

Hallo simkli,

hat einen Moment gedauert, hab jetzt alle verfügbaren PHP Versionen ausgelesen die ich wohl nutzen kann (per PHP + 2x Tabulator)

(uiserver):x123456789:~$ php  
php&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;php-config7.1&nbsp; &nbsp; &nbsp; php5.2-cli&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;php7.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phpize6  
php-config4.4&nbsp; &nbsp; &nbsp; &nbsp;php4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; php5.4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;php7.1-cli&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phpize7.1  
php-config5.2&nbsp; &nbsp; &nbsp; &nbsp;php4.4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;php5.4-cli&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phpize4.4  
php-config5.4&nbsp; &nbsp; &nbsp; &nbsp;php4.4-cli&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; php5.5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;phpize5.2  
php-config5.5&nbsp; &nbsp; &nbsp; &nbsp;php5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; php5.5-cli&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phpize5.4  
php-config6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; php5.2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;php6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; phpize5.5  
&nbsp;

---

<div class="post-metadata">

**Author:** ![shop-betreiber](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shop-betreiber](https://forum.shopware.com/u/shop-betreiber)\
**Post date:** [8. August 2018 um 20:00 UTC](https://forum.shopware.com/t/cli-konsole-uber-putty/54391/22 "2018-08-08T20:00:13Z")

</div>

Ich hab es jetzt mit folgender Syntax probiert

```
/usr/bin/php5.5-cli /kunden/homepages/xx/x123456789/htdocs/TM/Shop/bin/console /kunden/homepages/xx/x123456789/htdocs/TM/Shop/ioncube/ioncube_loader_lin_5.5.so sw:media:cleanup

```

Wie beim Backup ziehen der Datenbank springt es auf die Befehlszeile zurück. was ja schonmal ein gutes zeichen zu sein scheint.

```
(uiserver):x123456789:~$

```

Aber die Anzahl der Dateien ändert sich nicht auf dem Server als fehlt noch ein Befehl, Comando oder&nbsp;Phrase.

und wenn ich z.B. php 5.4 nehme gibt es einen kernel Fehler von Shopware  
&nbsp;

```
/usr/bin/php5.4-cli /kunden/homepages/xx/x123456789/htdocs/TM/Shop/bin/console /kunden/homepages/xx/x123456789/htdocs/TM/Shop/ioncube/ioncube_loader_lin_5.4.so sw:media:cleanup

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /homepages/xx/x123456789/htdocs/TM/Shop/engine/Shopware/Kernel.php on line 576

```

Hat Jemand eine Idee warum nichts passiert? Oder dauert das jetzt einen Tag.&nbsp;

&nbsp;

Beste Grüße

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [8. August 2018 um 21:34 UTC](https://forum.shopware.com/t/cli-konsole-uber-putty/54391/23 "2018-08-08T21:34:54Z")

</div>

Es tut mir echt Leid, lieber Shopbetreiber, aber dein Hoster bietet leider keine kompatible PHP-Version auf der Konsole an.

Du benötigst für Ioncube&Shopware entweder 5.6 oder 7.0. Diese beiden stehen bei dir nicht zur Verfügung.

> Ich hab es jetzt mit folgender Syntax probiert
> 
> /usr/bin/php5.5-cli /kunden/homepages/xx/x123456789/htdocs/TM/Shop/bin/console

Laut Shopware-Mindestanforderungen wird PHP \>= 5.6.4 benötigt. Mit 5.5 kann es also nicht klappen. Der Fehler der folgt liegt an der Syntax von Shopware mit der php5.5 nicht zurechtkommt.&nbsp;

Ich empfehle dir auf ein Shopware zertifiziertes Hosting zu wechseln. Das bietet i.d.R. bessere Performance und erspart dir eine Menge Stress. Glaube mir ich weiß von was ich rede.&nbsp;

Ich kenne solche Fälle und&nbsp;habe schon mit vielen Tricks versucht, sowas zu beheben (php selbst kompilieren und hochladen etc.) Spar dir denn Stress und investiere die paar Euro für ein gutes Hosting.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![shop-betreiber](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shop-betreiber](https://forum.shopware.com/u/shop-betreiber)\
**Post date:** [30. Dezember 2019 um 00:19 UTC](https://forum.shopware.com/t/cli-konsole-uber-putty/54391/24 "2019-12-30T00:19:54Z")

</div>

Falsch Simkli du irrst dich es klappt sehr gut.

das funktioniert mit ionos war zwar fummelig aler nun läufts.

/usr/bin/php7.1-cli /kunden/homepages/xxx/htdocs/xxx/Shop/bin/console sw:media:cleanup

Hiermit hats gut geklappt

[Vorherige Seite](https://forum.shopware.com/t/cli-konsole-uber-putty/54391.md?page=1)
