cancel
Showing results for 
Search instead for 
Did you mean: 

magento/product-community-edition 2.4.0 requires php ~7.3.0||~7.4.0 -> your php version (8.0.7)

magento/product-community-edition 2.4.0 requires php ~7.3.0||~7.4.0 -> your php version (8.0.7)

Hello, im trying to install the communuty edition by composer 2.1.2 but in the logs show that i have the php8 installed and that i must use the php7. i Have already installed the php7 but still requiring the right version. So please can anyone help.

 

 

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.0 /home/magento/

 

 

 

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0].


- magento/product-community-edition 2.4.0 requires php ~7.3.0||~7.4.0 -> your php version (8.0.7) does not satisfy that requirement.


Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].


- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires php ^5.3|^7 -> your php version (8.0.7) does not satisfy that requirement.


Problem 3
- friendsofphp/php-cs-fixer[v2.16.0, ..., v2.16.10] require php ^5.6 || ^7.0 -> your php version (8.0.7) does not satisfy that requirement.


- friendsofphp/php-cs-fixer v2.16.6 requires php ^7.0 -> your php version (8.0.7) does not satisfy that requirement.


- friendsofphp/php-cs-fixer v2.16.7 requires php ^7.1 -> your php version (8.0.7) does not satisfy that requirement.


- Root composer.json requires friendsofphp/php-cs-fixer ~2.16.0 -> satisfiable by friendsofphp/php-cs-fixer[v2.16.0, ..., v2.16.10].

 

 

composer.pngmagento-bsh.pngmagento-bsh2.pngmagento-bsh3.pngphp-v.pngphp7.pngphp-v.pngphp7.pngmagento-bsh3.pngmagento-bsh2.pngmagento-bsh.pngcomposer.pngphp7.pngmagento-bsh3.pngmagento-bsh2.pngmagento-bsh.pngcomposer.png

1 REPLY 1

Re: magento/product-community-edition 2.4.0 requires php ~7.3.0||~7.4.0 -> your php version (8.0.

Hello,

first go to your root directory in which you want to install magento enterprise 

and then run below command

which php 
which composer

and then the path you get from which php replace it with /opt/lampp/bin/php in below command and same for which composer command ...whatever path you get from which composer command replace it with /usr/local/bin/composer in below command and then run below command.

/opt/lampp/bin/php /usr/local/bin/composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition=2.4.0 

Hope this will help you.

Happy coding Smiley Happy