# Dein System ist noch nicht bereit für Shopware 6 - PHP Versions Probleme

**URL:** https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326
**Category:** Installation / Einstieg
**Created:** [9. März 2022 um 11:35 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326 "2022-03-09T11:35:53Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [9. März 2022 um 11:35 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/1 "2022-03-09T11:35:53Z")

</div>

Hallo, wie löse ich folgende Fehlermeldung?

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/0/f/0fc8cc004db4bed94e3db4c9a76889dc70065252.jpeg)

Vollständige Hinweise:

```auto
Dateien und Verzeichnisse
System

Dein Server sollte die folgenden Systemvoraussetzungen erfüllen, um Shopware im ganzen Ausmaß nutzen zu können.
Voraussetzung Status Erforderlich Dein System
php Bereit 7.4.3 8.0.16
pdo Bereit 1 1
pdo_mysql Fehler 1 0
phar Bereit 1 1
fileinfo Bereit 1 1
dom Bereit 1 1
gd Warnung 2.0.0 0
gd_jpg Warnung 1 0
freetype Warnung 1 0
libxml Bereit 2.6.26 2.9.12
curl Fehler 7.0.0 0
openssl Bereit 1 1
session Bereit 1 1
mbstring Fehler 1 0
pcre Bereit 1 1
iconv Bereit 1 1
json Bereit 1 1
xml Bereit 1 1
simplexml Bereit 1 1
fileinfo Bereit 1 1
zip Fehler 1 0
zlib Bereit 1 1
ftp Bereit 1 1
intl Fehler 1 0
sodium Bereit 1 1
ini_set Bereit 1 1
include_path Bereit 1 1
session.auto_start Bereit 0 0
memory_limit Bereit 512M 512M
max_execution_time Bereit 30 120
upload_max_filesize Bereit 6M 6M
post_max_size Bereit 8M 8M
allow_url_fopen Bereit 1 1
curl_exec Warnung 1 0
curl_multi_exec Warnung 1 0
file_uploads Bereit 1 1
opcache.use_cwd Bereit 1 1 

```

**daraus die Fehlerhinweise:**

```auto
pdo_mysql Fehler 1 0

curl Fehler 7.0.0 0

mbstring Fehler 1 0

zip Fehler 1 0

intl Fehler 1 0

curl_exec Warnung 1 0

curl_multi_exec Warnung 1 0

```

[https://www.php.net/manual/de/extensions.php](https://www.php.net/manual/de/extensions.php)

Weitere Systeminformationen:

> [@Anleitung - Installation Ubuntu 20.04 VPS - Shopware 6 - Apache2](https://forum.shopware.com/t/anleitung-installation-ubuntu-20-04-vps-shopware-6-apache2/93279):
>
> Hallo Forum, nach welcher Anleitung sollte ich 2022 Shopware 6 auf einem VPS Server installieren? Mein Apache2 Server ist erreichbar. Das System: Shopware 6 - requirements https : / /docs.shopware.com/en/shopware-6-en/first-steps/system-requirements My system cat /etc/lsb-release DISTRIB\_ID=Ubuntu DISTRIB\_RELEASE=20.04 DISTRIB\_CODENAME=focal DISTRIB\_DESCRIPTION=„Ubuntu 20.04.4 LTS“ sudo apache2 -v Server version: Apache/2.4.41 (Ubuntu) sudo php -v PHP 8.0.16 (cli) (built:…

Das gibt es " Häufige Fehler an diesem Punkt":

> **[VPS Tutorial: Shopware auf vServer installieren - dogado.de](https://www.dogado.de/vps/vserver-anwendungsfaelle/shopware-auf-vserver-installieren)**
>
> VPS: Shopware auf vServer installieren - So geht es! ✓ Informier…

MfG  
sven-sw

---

<div class="post-metadata">

### Author: ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)
#### Post date: [9. März 2022 um 12:50 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/2 "2022-03-09T12:50:00Z")

</div>

Da gemäß Fehlermeldung Komponenten von PHP fehlen, diese nachinstallieren/kompilieren.  
Die gelisteten Module sind optional, nicht im Standard von PHP enthalten.

---

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [9. März 2022 um 12:54 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/3 "2022-03-09T12:54:55Z")

</div>

```auto
apt search php8.1
Sorting... Done
Full Text Search... Done
libapache2-mod-php8.1/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed,automatic]
  server-side, HTML-embedded scripting language (Apache 2 module)

libphp8.1-embed/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  HTML-embedded scripting language (Embedded SAPI library)

php8.1/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 all [installed,automatic]
  server-side, HTML-embedded scripting language (metapackage)

php8.1-amqp/focal 1.11.0-4+ubuntu20.04.1+deb.sury.org+10 arm64
  AMQP extension for PHP

php8.1-apcu/focal,now 5.1.21+4.0.11-7+ubuntu20.04.1+deb.sury.org+10 arm64 [installed,automatic]
  APC User Cache for PHP

php8.1-ast/focal 1.0.16-4+ubuntu20.04.1+deb.sury.org+10 arm64
  AST extension for PHP 7

php8.1-bcmath/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  Bcmath module for PHP

php8.1-bz2/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  bzip2 module for PHP

php8.1-cgi/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  server-side, HTML-embedded scripting language (CGI binary)

php8.1-cli/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed,automatic]
  command-line interpreter for the PHP scripting language

php8.1-common/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
  documentation, examples and common module for PHP

php8.1-curl/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
  CURL module for PHP

php8.1-dba/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  DBA module for PHP

php8.1-decimal/focal 1.4.0-2+ubuntu20.04.1+deb.sury.org+3 arm64
  Arbitrary precision floating-point decimal for PHP

php8.1-dev/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  Files for PHP8.1 module development

php8.1-ds/focal 1.4.0-4+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP extension providing efficient data structures for PHP 7

php8.1-enchant/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  Enchant module for PHP

php8.1-fpm/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  server-side, HTML-embedded scripting language (FPM-CGI binary)

php8.1-gd/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed,automatic]
  GD module for PHP

php8.1-gearman/focal 2.1.0+1.1.2-11+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP wrapper to libgearman

php8.1-gmagick/focal 2.0.6~rc1+1.1.7~rc3-10+ubuntu20.04.1+deb.sury.org+10 arm64
  Provides a wrapper to the GraphicsMagick library

php8.1-gmp/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  GMP module for PHP

php8.1-gnupg/focal 1.5.1-1+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP wrapper around the gpgme library

php8.1-grpc/focal 1.42.0+1.33.1-1+ubuntu20.04.1+deb.sury.org+1 arm64
  High performance, open source, general RPC framework for PHP

php8.1-igbinary/focal 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 arm64
  igbinary PHP serializer

php8.1-imagick/focal 3.6.0-4+ubuntu20.04.1+deb.sury.org+10 arm64
  Provides a wrapper to the ImageMagick library

php8.1-imap/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  IMAP module for PHP

php8.1-inotify/focal 3.0.0+0.1.6-2+ubuntu20.04.1+deb.sury.org+3 arm64
  Inotify bindings for PHP

php8.1-interbase/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  Interbase module for PHP

php8.1-intl/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed,automatic]
  Internationalisation module for PHP

php8.1-ldap/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  LDAP module for PHP

php8.1-lz4/focal 0.4.3-2+ubuntu20.04.1+deb.sury.org+2 arm64
  LZ4 Extension for PHP

php8.1-mailparse/focal 3.1.2+2.1.7~dev20160128-7+ubuntu20.04.1+deb.sury.org+10 arm64
  Email message manipulation for PHP

php8.1-maxminddb/focal 1.11.0-2+ubuntu20.04.1+deb.sury.org+3 arm64
  Reader for the MaxMind DB file format for PHP

php8.1-mbstring/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
  MBSTRING module for PHP

php8.1-mcrypt/focal 3:1.0.4-7+ubuntu20.04.1+deb.sury.org+3 arm64
  PHP bindings for the libmcrypt library

php8.1-memcache/focal 8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-7+ubuntu20.04.1+deb.sury.org+10 arm64
  memcache extension module for PHP

php8.1-memcached/focal 3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10 arm64
  memcached extension module for PHP, uses libmemcached

php8.1-mongodb/focal 1.12.0+1.9.2+1.7.5-4+ubuntu20.04.1+deb.sury.org+10 arm64
  MongoDB driver for PHP

php8.1-msgpack/focal 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP extension for interfacing with MessagePack

php8.1-mysql/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
  MySQL module for PHP

php8.1-oauth/focal 2.0.7+1.2.3-14+ubuntu20.04.1+deb.sury.org+10 arm64
  OAuth 1.0 consumer and provider extension

php8.1-odbc/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  ODBC module for PHP

php8.1-opcache/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed,automatic]
  Zend OpCache module for PHP

php8.1-pcov/focal 1.0.11-4+ubuntu20.04.1+deb.sury.org+10 arm64
  Code coverage driver

php8.1-pgsql/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  PostgreSQL module for PHP

php8.1-phpdbg/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  server-side, HTML-embedded scripting language (PHPDBG binary)

php8.1-protobuf/focal 3.19.1+3.12.4-1+ubuntu20.04.1+deb.sury.org+3 arm64
  Protocol buffers bindings for PHP

php8.1-ps/focal 1.4.4+1.3.7-6+ubuntu20.04.1+deb.sury.org+10 arm64
  ps module for PHP

php8.1-pspell/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  pspell module for PHP

php8.1-psr/focal 1.2.0-4+ubuntu20.04.1+deb.sury.org+10 arm64
  PSR interfaces for PHP

php8.1-raphf/focal 2.0.1+1.1.2-13+ubuntu20.04.1+deb.sury.org+10 arm64
  raphf module for PHP

php8.1-readline/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed,automatic]
  readline module for PHP

php8.1-redis/focal 5.3.6+4.3.0-1+ubuntu20.04.1+deb.sury.org+1 arm64
  PHP extension for interfacing with Redis

php8.1-rrd/focal 2.0.3+1.1.3-6+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP bindings to rrd tool system

php8.1-smbclient/focal 1.0.6-6+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP wrapper for libsmbclient

php8.1-snmp/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  SNMP module for PHP

php8.1-soap/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  SOAP module for PHP

php8.1-solr/focal 2.5.1+2.4.0-10+ubuntu20.04.1+deb.sury.org+3 arm64
  PHP extension for communicating with Apache Solr server

php8.1-sqlite3/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  SQLite3 module for PHP

php8.1-ssh2/focal 1.3.1+0.13-6+ubuntu20.04.1+deb.sury.org+10 arm64
  Bindings for the libssh2 library

php8.1-swoole/focal 4.8.5-1+ubuntu20.04.1+deb.sury.org+1 arm64
  Swoole Coroutine Fiber Async Programming Framework for PHP

php8.1-sybase/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  Sybase module for PHP

php8.1-tidy/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64
  tidy module for PHP

php8.1-uopz/focal 7.1.1+6.1.2-5+ubuntu20.04.1+deb.sury.org+10 arm64
  UOPZ extension for PHP 7

php8.1-uploadprogress/focal 2.0.2+1.1.4-6+ubuntu20.04.1+deb.sury.org+10 arm64
  file upload progress tracking extension for PHP

php8.1-uuid/focal 1.2.0-11+ubuntu20.04.1+deb.sury.org+10 arm64
  PHP UUID extension

php8.1-vips/focal 1.0.12-2+ubuntu20.04.1+deb.sury.org+3 arm64
  PHP extension for interfacing with libvips

php8.1-xdebug/focal 3.1.2+2.9.8+2.8.1+2.5.5-4+ubuntu20.04.1+deb.sury.org+10 arm64
  Xdebug Module for PHP

php8.1-xhprof/focal 2.3.5+0.9.4-2+ubuntu20.04.1+deb.sury.org+3 arm64
  Hierarchical Profiler for PHP 5.x

php8.1-xml/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
  DOM, SimpleXML, XML, and XSL module for PHP

php8.1-xmlrpc/focal 3:1.0.0~rc3-4+ubuntu20.04.1+deb.sury.org+10 arm64
  XML-RPC servers and clients functions for PHP

php8.1-xsl/focal 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 all
  XSL module for PHP (dummy)

php8.1-yac/focal 2.3.1+0.9.2-4+ubuntu20.04.1+deb.sury.org+10 arm64
  YAC (Yet Another Cache) for PHP

php8.1-yaml/focal 2.2.2+2.1.0+2.0.4+1.3.2-5+ubuntu20.04.1+deb.sury.org+10 arm64
  YAML-1.1 parser and emitter for PHP

php8.1-zip/focal,now 8.1.3-1+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
  Zip module for PHP

php8.1-zmq/focal 1.1.3-23+ubuntu20.04.1+deb.sury.org+10 arm64
  ZeroMQ messaging bindings for PHP

php8.1-zstd/focal 0.11.0-1+ubuntu20.04.1+deb.sury.org+3 arm64
  Zstandard extension for PHP

```

Die Pakete habe ich zu Verfügung, bzw. auch schon installiert.

Gibt es ein Lösung ohne kompilieren?

> **[How to Install or Upgrade PHP 8.1 on Ubuntu 20.04](https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/)**
>
> How to Install or Upgrade PHP 8.1 on Ubuntu 20.04 . Also learn how to configure PHP for Apache and Nginx web servers.

```auto
sudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-redis php8.1-intl

```

Wie löse ich das Problem konkret?

---

<div class="post-metadata">

### Author: ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)
#### Post date: [10. März 2022 um 05:16 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/4 "2022-03-10T05:16:11Z")

</div>

Jetzt komme ich ein wenig durcheinander …

Die Fehlermeldung oben zeigt, dass PHP Module fehlen. Unter der eingesetzten PHP Version 8.0.16  
Deine letzte Antwort verweist jedoch auf PHP 8.1

Was nutzt Du denn nun?  
Erstell Dir doch einfach mal eine phpinfo und dann siehst Du konkret welches PHP der Webserver gerade nutzt und welche Module aktiviert sind.

Zur Frage an sich ergänzend: Nicht jedes Modul muss kompiliert werden, ein Großteil lässt sich einfach so installieren, dabei aber auch bedenken, dass man es einbinden muss.

---

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [10. März 2022 um 05:51 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/5 "2022-03-10T05:51:42Z")

</div>

Hallo, danke das Du dich meines Problems annimmst.

So sieht es gerade aus:

```auto
 php -v
PHP 8.1.3 (cli) (built: Feb 21 2022 14:48:42) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies

```

Welche Informationen aus der php.info sollte man für sich behalten?  
Wie publiziere ich am sinnvollsten die wichtigen Informationen?

`sudo nano /var/www/html/public/info.php`

/var/www/html/public/info.php

```auto
<?php
phpinfo();
?>

```

Erste Zeile in der Ausgabe von info.php " PHP Version 8.0.16".  
Das stimmt also etwas nicht.

/etc/php

> **[phpsw2022 - Pastebin.com](https://pastebin.com/rgzvMiAd)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Sieht das immer so aus?  
Wenn nein, wie sollte ich das säubern?

Das wird wohl mein To Do sein:

> **[How to Enable or Disable PHP Modules on Ubuntu 20.04 | 18.04](https://brightwhiz.com/enable-disable-php-modules-ubuntu/)**
>
> This guide we will be showing how you can enable or disable PHP modules on Ubuntu 20.04 LTS as well as other versions

```auto
php -i|grep php.ini
Configuration File (php.ini) Path => /etc/php/8.1/cli
Loaded Configuration File => /etc/php/8.1/cli/php.ini

```

Wie aktiviere ich nun die PHP 8.1.3?

MfG  
sven-sw

---

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [10. März 2022 um 07:03 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/6 "2022-03-10T07:03:47Z")

</div>

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/b/fb36c731df269e87f889fe596f62db37981560c1.jpeg)

Lösung Nummer 1:

```auto
sudo apt install php8.0-common php8.0-mysql php8.0-xml php8.0-xmlrpc php8.0-curl php8.0-gd php8.0-imagick php8.0-cli php8.0-dev php8.0-imap php8.0-mbstring php8.0-opcache php8.0-soap php8.0-zip php8.0-redis php8.0-intl 

 /etc/init.d/apache2 restart

```

Wie komme ich nun zu PHP 8.1 und räume mein System auf?

---

<div class="post-metadata">

### Author: ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)
#### Post date: [10. März 2022 um 07:40 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/7 "2022-03-10T07:40:04Z")

</div>

Also Deinem letzten Beitrag entnehme ich, dass der Fehler soweit weg ist nach Installation von PHP 8.0.x samt den nötigen Modulen. Dies bestätigt ja meine These, dass Du zuvor Dich mit den Modulen zwar beschäftigt hast, aber innerhalb der falschen PHP Version.

Du fragst nach dem Wechsel auf PHP 8.1.x? Dies geschieht über die Konfiguration des Webservers.  
Vorgehensweise ist dabei unterschiedlich, je nachdem wie PHP eingebunden wird bei Dir …

Schau mal kurz über den Link hier (was anderes auf die Schnelle nicht gefunden):

> **[How to Change PHP Version in Apache on Ubuntu - Interserver Tips](https://www.interserver.net/tips/kb/change-php-version-apache-ubuntu/)**
>
> Time to time, you have to change the PHP version you run on your server. Follow this guide to learn how to change PHP version in Apache on Ubuntu server.

Aber Hinweis: Bist Du Dir sicher mit PHP 8.1 ? Auch wenn es im Bereich OPCache performanter ist, gibt es jedoch durchaus einige Plugins oder Themes, die ggfs. Probleme machen können.

---

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [10. März 2022 um 07:42 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/8 "2022-03-10T07:42:13Z")

</div>

> [@mr.unschuldig](#):
>
> Aber Hinweis: Bist Du Dir sicher mit PHP 8.1 ? Auch wenn es im Bereich OPCache performanter ist, gibt es jedoch durchaus einige Plugins oder Themes, die ggfs. Probleme machen können.

Das kann ich nicht beurteilen, sicher bin ich mir nicht.

> [@Shopware 6.4.X mit PHP 8.1](https://forum.shopware.com/t/shopware-6-4-x-mit-php-8-1/91885/7):
>
> Hallo, wird Shopware 6.4.8.1 von PHP 8.1.3 im März 2022 unterstützt? Auszug: Shopware 6 ✗ Bisher keine Unterstützung von PHP 8.1 Wie komme ich zu der Information? MfG sven-sw

Auf eine Antwort warte ich.

```auto
php -v
PHP 8.1.3 (cli) (built: Feb 21 2022 14:48:42) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies

```

ssh Verbindung  
Warum wird mir diese Version angezeigt?

---

<div class="post-metadata">

### Author: ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)
#### Post date: [10. März 2022 um 07:55 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/9 "2022-03-10T07:55:32Z")

</div>

Weil die 8.1.3. die von Systemadministrator festgelegte Version für die Kommandozeile ist.

---

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [10. März 2022 um 07:56 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/10 "2022-03-10T07:56:46Z")

</div>

Hm, der bin ja ich, wo stelle ich das um?

> **[How To Switch PHP Version on Ubuntu 20.04 LTS](https://php.tutorials24x7.com/blog/how-to-switch-php-version-on-ubuntu-20-04-lts)**
>
> This tutorial provides the steps required to switch among the multiple versions of PHP installed on Ubuntu 20.04 LTS for CLI, Apache Web Server, and NGINX.

---

<div class="post-metadata">

### Author: ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)
#### Post date: [10. März 2022 um 07:59 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/11 "2022-03-10T07:59:05Z")

</div>

```auto
sudo update-alternatives --config php

```

Zuweisung für Webserver usw. ist davon unabhängig bzw. nicht zwingend relevant.  
Es gibt durchaus Gründe als root Befehle innerhalb diverser PHP Laufzeiten abzusetzen.

---

<div class="post-metadata">

### Author: ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)
#### Post date: [10. März 2022 um 08:03 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/12 "2022-03-10T08:03:48Z")

</div>

```auto
 sudo update-alternatives --config php
There are 4 choices for the alternative php (providing /usr/bin/php).

  Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/php.default 100 auto mode
  1 /usr/bin/php.default 100 manual mode
  2 /usr/bin/php7.4 74 manual mode
  3 /usr/bin/php8.0 80 manual mode
  4 /usr/bin/php8.1 81 manual mode

Press <enter> to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/php8.0 to provide /usr/bin/php (php) in manual mode
ubuntu@instance-20220306-1919:~$ sudo update-alternatives --config php
There are 4 choices for the alternative php (providing /usr/bin/php).

```

Das habe ich jetzt \*3 umgestellt.

```auto
php -v
PHP 8.0.16 (cli) (built: Feb 21 2022 14:42:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.16, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies

```

Ist \*0, also auto nicht angebrachter?

---

<div class="post-metadata">

### Author: ![mr.unschuldig](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr.unschuldig](https://forum.shopware.com/u/mr.unschuldig)
#### Post date: [10. März 2022 um 08:13 UTC](https://forum.shopware.com/t/dein-system-ist-noch-nicht-bereit-fuer-shopware-6-php-versions-probleme/93326/13 "2022-03-10T08:13:59Z")

</div>

Nö… sehe ich differenzierter.

Ist es ein System, auf dem nur eine Umgebung läuft - z.B. ngingx mit PHP 8.0.x nehem ich für die Kommandozeile auch 8.0.x

Ist es ein System mit zig unterschiedlichen vhost ist es eh egal - man sollte die Befehle dann eh angepasst auf den jeweiligen vhost mit ANgabe der php-Version im Befehl absetzen.

Somit …
