Update 6..5.2.1 via Composer installieren - via Webbrowser gehts nicht

Hallo, da die Installation via admin/Webbrowser nicht abgeschlossen wird habe ich es via Composer versucht, was auch nicht geklappt hat.
Was muss ich genau in der composer.json Datei eintragen? Ich habe nach Anleitung Shopware das so:

„require“: {
„php“: „^7.4.3 || ^8.0“,
„composer-runtime-api“: „^2.0“,
„shopware/administration“: „~v6.4.0“,
„shopware/core“: „~v6.5.2.1“,
„shopware/elasticsearch“: „~v6.4.0“,
„shopware/recovery“: „~v6.4.0“,
„shopware/storefront“: „~v6.4.0“

Ich bekomme diese Meldung:
Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Root composer.json requires shopware/core ~v6.5.2.1 → satisfiable by shopware/core[v6.5.2.1].
  • shopware/core v6.5.2.1 requires php ~8.1.0 || ~8.2.0 → your php version (7.4.3; overridden via config.platform, actual: 8.1.20) does not satisfy that requirement.
    Problem 2
  • shopware/administration 6.4.0.0 requires shopware/core v6.4.0.0 → found shopware/core[6.4.0.0] but it conflicts with your root composer.json require (~v6.5.2.1).
  • shopware/administration 6.4.1.0 requires shopware/core v6.4.1.0 → found shopware/core[6.4.1.0] but it conflicts with your root composer.json require (~v6.5.2.1).
  • shopware/administration 6.4.1.1 requires shopware/core v6.4.1.1 → found shopware/core[6.4.1.1] but it conflicts with your root composer.json require (~v6.5.2.1).
  • shopware/administration 6.4.1.2 requires shopware/core v6.4.1.2 → found shopware/core[6.4.1.2] but it conflicts with your root composer.json require (~v6.5.2.1).

Auf meinem Server ist PHP 8.1.20 installiert.

Was läuft bei mir falsch, was mache ich falsch?
Gruss
Welle

Auf der Konsole ist es noch 7.4 …

Hallo und besten Dank für deine Antwort.
Was bedeutet das?
Mit Konsole ist gemeint „Composer“? wie ändere ich das?

wie kann das sein?
Ich habe folgende Aussage gefunden:
Sollte es nötig sein den Composer, der per default mit der PHP-Version des Betriebssystems ausgeführt wird, unter einer anderen PHP-Version auszuführen kann dies wie folgt geändert werden.
Da bei mir Standard PHP 8.1.20 ist, müsste doch Composer damit laufen.

Ich habe Composer nachmals installiert und versucht das Update auszuführen …
folgendes erhalte ich:
Run Update preparations
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires shopware/core ~v6.5.2.1 → satisfiable by shopware/core[v6.5.2.1].
- shopware/core v6.5.2.1 requires php ~8.1.0 || ~8.2.0 → your php version (7.4.3; overridden via config.platform, actual: 8.1.20) does not satisfy that requirement.
Problem 2
- shopware/administration 6.4.0.0 requires shopware/core v6.4.0.0 → found shopware/core[6.4.0.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.1.0 requires shopware/core v6.4.1.0 → found shopware/core[6.4.1.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.1.1 requires shopware/core v6.4.1.1 → found shopware/core[6.4.1.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.1.2 requires shopware/core v6.4.1.2 → found shopware/core[6.4.1.2] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.2.0 requires shopware/core v6.4.2.0 → found shopware/core[6.4.2.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.2.1 requires shopware/core v6.4.2.1 → found shopware/core[6.4.2.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.3.0 requires shopware/core v6.4.3.0 → found shopware/core[6.4.3.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.3.1 requires shopware/core v6.4.3.1 → found shopware/core[6.4.3.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.4.0 requires shopware/core v6.4.4.0 → found shopware/core[6.4.4.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.4.1 requires shopware/core v6.4.4.1 → found shopware/core[6.4.4.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.5.0 requires shopware/core v6.4.5.0 → found shopware/core[6.4.5.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.5.1 requires shopware/core v6.4.5.1 → found shopware/core[6.4.5.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.6.0 requires shopware/core v6.4.6.0 → found shopware/core[6.4.6.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.6.1 requires shopware/core v6.4.6.1 → found shopware/core[6.4.6.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.7.0 requires shopware/core v6.4.7.0 → found shopware/core[6.4.7.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.8.0 requires shopware/core v6.4.8.0 → found shopware/core[6.4.8.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.8.1 requires shopware/core 6.4.8.1 → found shopware/core[6.4.8.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.8.2 requires shopware/core v6.4.8.2 → found shopware/core[6.4.8.2] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.9.0 requires shopware/core v6.4.9.0 → found shopware/core[6.4.9.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.10.0 requires shopware/core v6.4.10.0 → found shopware/core[6.4.10.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.10.1 requires shopware/core v6.4.10.1 → found shopware/core[6.4.10.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.11.0 requires shopware/core v6.4.11.0 → found shopware/core[6.4.11.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.11.1 requires shopware/core v6.4.11.1 → found shopware/core[6.4.11.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.12.0 requires shopware/core v6.4.12.0 → found shopware/core[6.4.12.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.13.0 requires shopware/core v6.4.13.0 → found shopware/core[6.4.13.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.14.0 requires shopware/core v6.4.14.0 → found shopware/core[6.4.14.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.15.0 requires shopware/core v6.4.15.0 → found shopware/core[6.4.15.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.15.1 requires shopware/core v6.4.15.1 → found shopware/core[6.4.15.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.15.2 requires shopware/core v6.4.15.2 → found shopware/core[6.4.15.2] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.16.0 requires shopware/core v6.4.16.0 → found shopware/core[6.4.16.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.16.1 requires shopware/core v6.4.16.1 → found shopware/core[6.4.16.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.17.0 requires shopware/core v6.4.17.0 → found shopware/core[6.4.17.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.17.1 requires shopware/core v6.4.17.1 → found shopware/core[6.4.17.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.17.2 requires shopware/core v6.4.17.2 → found shopware/core[6.4.17.2] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.18.0 requires shopware/core v6.4.18.0 → found shopware/core[6.4.18.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.18.1 requires shopware/core v6.4.18.1 → found shopware/core[6.4.18.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.19.0 requires shopware/core v6.4.19.0 → found shopware/core[6.4.19.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.20.0 requires shopware/core v6.4.20.0 → found shopware/core[6.4.20.0] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.20.1 requires shopware/core v6.4.20.1 → found shopware/core[6.4.20.1] but it conflicts with your root composer.json require (~v6.5.2.1).
- shopware/administration 6.4.20.2 requires shopware/core v6.4.20.2 → found shopware/core[6.4.20.2] but it conflicts with your root composer.json require (~v6.5.2.1).
- Root composer.json requires shopware/administration ~v6.4.0 → satisfiable by shopware/administration[6.4.0.0, …, 6.4.20.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Was mache ich falsch?
Gruss
Welle

Es hat nichts mit composer zu tun, auf der Konsole wo du den Befehl composer install / Require etc. aufrufst ist eingestellt das dies mit PHP7.4 ausgeführt wird - die Frage wie / wo du das ändern kannst, kann ich nicht beantworten am besten an den Hoster wenden.

Verifizieren lässt sich das mit einem php -v

besten Dank, die Abfrage php -v ergibt PHP 8.1.20

Kann es sein das in deiner composer.json immer noch dies hier steht ```
„php“: „7.4“

ganz am Anfang der composer.json steht:
{
„name“: „shopware/production“,
„type“: „project“,
„license“: „MIT“,
„config“: {
„optimize-autoloader“: true,
„platform“: {
„php“: „7.4.3“
},
„sort-packages“: true,
„allow-plugins“: {
„composer/package-versions-deprecated“: true
}
also ja … hm … wieso?

Kann ich das einfach „umschreiben“ auf 8.1.20 oder muss das anders geändert werden?

Umschreiben dann sollte es passen, ggfls. an dem Original der aktuellen Version halten

tja … habs geändert, neu Update laufen lassen, dann erhalte ich folgendes:

Problem 1
- Root composer.json requires shopware/core ~v6.5.2.1 → satisfiable by shopware/core[v6.5.2.1].
- shopware/core v6.5.2.1 requires league/flysystem-memory ~3.10 → found league/flysystem-memory[3.10.3, 3.13.0, 3.15.0] but it conflicts with your root composer.json require (~1.0.2).

dann ändere ich das in der composer.json Datei … wieder Update …
dann kommt diese Meldung:

Problem 1
- Root composer.json requires shopware/core ~v6.5.2.1 → satisfiable by shopware/core[v6.5.2.1].
- shopware/core v6.5.2.1 requires symfony/dependency-injection ~6.3.0 → found symfony/dependency-injection[v6.3.0] but it conflicts with your root composer.json require (~4.4 || ~5.2.3 || ~5.3.0 || ~5.4.0).

Also immer was neues … kann mir jemand eine composer.json Datei zusenden die funktioniert?
Wieso ist das so bei mir?

Hast du das Problem lösen können?