How to enforce the php version used by composer? (PHP 5.6 – 8.0)

How to enforce the php version used by composer? (PHP 5.6 – 8.0)

On servers, you can use php (and programs that use php, eg composer) in the appropriate version of php - from 5.6 to 8.0. By default, PHP is run in the version that is the main (default) on a given server (on the new servers the default version is PHP 7.4).

Of course, you can also run any version of PHP with ssh - we have prepared a guide on how to do it: How to install WP-cli

WordPress hosting

Speed and performance: NVMe Drives, http/3, multiple cache methods, free data migration, free SSL certificates

PrestaShop hosting

Security and Performance: Full Separation, Anti-Exploit Technology, NVMe Drives, http/3, Redis, Free SSL Certificates

Domains registration

On Smarthost.au you can register several hundred types of domains from all over the world. Prices are clear and predictable. We are a partner of NASK and EURid