Search code examples
phpservere-commerceshopwareshopware6

I am using ISP Config host, I just updated shopware 6.4.20 to 6.5.6 and dependencies require a PHP version ">= 8.1.0"


I am using ISP Config host, I just updated shopware 6.4.20 to 6.5.6, for which I had to change the php version so I changed it from host settings and it was shown in admin that its updated, but now bin/console not working, and says

"Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.13.

PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.13. in /web/dev/vendor/composer/platform_check.php on line 24"

I tried the composer update its showing 5 problems that dependencies also require PHP8.1 but the current is 7.4.13


Solution

  • Most likely your CLI version of PHP is still PHP 7.4, whilst the ISP has updated only the web server's version to PHP 8.1.

    Check your CLI PHP version by running php -v from the CLI.

    If it is still 7.4, you may want your provider to either change it, or ask him for the specific php command to use another version. (Note on many systems this could just be /usr/bin/php8.1 instead of php.)