PHP CLI Versions

Our Shopware hosting plans offer a variety of PHP CLI versions. The default PHP version when running 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



Launching the Shopware CLI Console with a Different PHP Version

To launch 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 executing this command.



Custom PHP memory_limit

To use a different memory limit for each Shopware CLI command, you can use the -d option to define the limit individually for each command.


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



Custom 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 individually for each command.


Example with 10 minutes:

/opt/plesk/php/8.3/bin/php -d max_execution_time=600 bin/console


Example with an infinite execution time:

/opt/plesk/php/8.3/bin/php -d max_execution_time=-1 bin/console