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

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

Error:

  Problem 1
    – Installation request for magento/product-community-edition 2.2.3 -> satisfiable by magento/product-community-edition[2.2.3].
    – magento/product-community-edition 2.2.3 requires php 7.0.2|7.0.4|~7.0.6|~7.1.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 2
    – Installation request for squizlabs/php_codesniffer 3.2.2 -> satisfiable by squizlabs/php_codesniffer[3.2.2].
    – squizlabs/php_codesniffer 3.2.2 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
  Problem 3
    – phpunit/phpunit 6.2.4 requires php ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
    – phpunit/phpunit 6.2.3 requires php ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
    – phpunit/phpunit 6.2.2 requires php ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
    – phpunit/phpunit 6.2.1 requires php ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
    – phpunit/phpunit 6.2.0 requires php ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
    – Installation request for phpunit/phpunit ~6.2.0 -> satisfiable by phpunit/phpunit[6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4].

  To enable extensions, verify that they are enabled in your .ini files:
    – /etc/php.ini
    – /etc/php.d/curl.ini
    – /etc/php.d/fileinfo.ini
    – /etc/php.d/json.ini
    – /etc/php.d/phar.ini
    – /etc/php.d/zip.ini
  You can also run `php –ini` inside terminal to see which files are used by PHP in CLI mode.

Cause: wrong PHP version installed(Not compatible with the requirement).

Solution: install the right version of PHP by checking the system requirement or either check error message.

Here we are going to install PHP 7.2 on centos 7

For this, we are using REMI repo

The Remi repository depends on the EPEL repository, due to that we need to install the EPEL repository first.

sudo yum install epel-release yum-utils

sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

First enable the PHP 7.2 Remi repository by running the following command:

sudo yum-config-manager –enable remi-php72

Once the repository is enabled install PHP 7.2 and few most common PHP modules:

sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd

To check use command: php -v

Leave a Comment

Your email address will not be published. Required fields are marked *

To Resolve this issue at just 5$ from ServerExpert

https://serverexpert.io/

For Hosting please visit Hostingwebsite.io

You have Successfully Subscribed!

Open chat