PHP CLI versions
Various PHP CLI versions are available with our Shopware hosting tariffs. The standard PHP version when calling bin/php is currently 8.2.
PHP 7 CLI versions
PHP 7.4
/opt/plesk/php/7.4/bin/php -v PHP 8 CLI versions
PHP 8.0
/opt/plesk/php/8.0/bin/php -v PHP 8.1
/opt/plesk/php/8.1/bin/php -v PHP 8.2
/opt/plesk/php/8.2/bin/php -v PHP 8.3
/opt/plesk/php/8.3/bin/php -v Calling the Shopware CLI console with a different PHP version
To call the Shopware CLI console using a different PHP version, use the following command:
PHP 8.1
/opt/plesk/php/8.1/bin/php bin/console PHP 8.2
/opt/plesk/php/8.2/bin/php -v Please note that you must be in the root directory of your Shopware installation when calling this command.
Different PHP memory_limit
To use a different memory limit for each Shopware CLI command, you can use the -d option to define the limit for each command individually.
Example with 512 MB:
/opt/plesk/php/8.3/bin/php -d memory_limit=512M bin/console Example with 1 GB:
/opt/plesk/php/8.3/bin/php -d memory_limit=1G bin/console Deviating PHP max_execution_time
To use a different maximum execution time for each Shopware CLI command, you can use the -d option to define the time for each command individually.
Example with 10 minutes:
/opt/plesk/php/8.3/bin/php -d max_execution_time=600 bin/console Example with infinite execution time:
/opt/plesk/php/8.3/bin/php -d max_execution_time=-1 bin/console