Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shaher11's avatar

Composer install doesn't work on server !!

Hello there, I am trying to deploy Laravel project on a shared host I cloned it, but when I run composer install it gives me the error message below.

 Problem 1
    - Root composer.json requires php ^7.2.5 but your php version (5.6.40) does not satisfy that requirement.
  Problem 2
    - laravel/framework[v7.29.0, ..., 7.x-dev] require php ^7.2.5|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
    - laravel/framework[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
    - Root composer.json requires laravel/framework ^7.0 -> satisfiable by laravel/framework[v7.0.0, ..., 7.x-dev].

*Considering that I have changed PHP version on server from MultiPHPManager to PHP 7.4 put still got that error message

PHP 7.4.26 (cli) (built: Dec  1 2021 03:34:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

*I tried to install composer using the command below it goes well

composer install --ignore-platform-reqs

*put It gives me the message below at the end of the installation process and PHP artisan doesn't work

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
Parse error: syntax error, unexpected ':', expecting '{' in /home/emsapi/public_html/api/vendor/symfony/polyfill-php80/bootstrap.php on line 23

#composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.2.5",
        "beyondcode/laravel-websockets": "^1.11",
        "elibyy/tcpdf-laravel": "^8.0",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^6.3",
        "laravel/framework": "^7.0",
        "laravel/passport": "^8.4",
        "laravel/tinker": "^2.0",
        "lcobucci/jwt": "3.3.3",
        "maatwebsite/excel": "^3.1",
        "phpoffice/phpword": "^0.17.0",
        "queueworker/sansdaemon": "^1.2",
        "spatie/laravel-permission": "^3.11",
        "wildside/userstamps": "^2.1"
    },
    "require-dev": {
        "facade/ignition": "^2.0",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^4.1",
        "phpunit/phpunit": "^8.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "files": [
            "app/Models/helpers.php"
        ],
        "psr-4": {
            "App\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

0 likes
8 replies
Sinnbeck's avatar

Ok lets try one thing at a time

php -v

what does this give you?

which composer

and this?

shaher11's avatar

PHP 7.4.26 (cli) (built: Dec 1 2021 03:34:19) ( NTS )

/opt/cpanel/composer/bin/composer

@Sinnbeck

shaher11's avatar

@Sinnbeck

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - Root composer.json requires php ^7.2.5 but your php version (5.6.40) does not satisfy that requirement.
  Problem 2
    - brick/math is locked to version 0.9.3 and an update of this package was not requested.
    - brick/math 0.9.3 requires php ^7.1 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 3
    - doctrine/inflector is locked to version 2.0.4 and an update of this package was not requested.
    - doctrine/inflector 2.0.4 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 4
    - doctrine/lexer is locked to version 1.2.1 and an update of this package was not requested.
    - doctrine/lexer 1.2.1 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 5
    - dragonmantank/cron-expression is locked to version v2.3.1 and an update of this package was not requested.
    - dragonmantank/cron-expression v2.3.1 requires php ^7.0|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 6
    - fruitcake/laravel-cors is locked to version v1.0.6 and an update of this package was not requested.
    - fruitcake/laravel-cors v1.0.6 requires php >=7 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 7
    - laminas/laminas-diactoros is locked to version 2.8.0 and an update of this package was not requested.
    - laminas/laminas-diactoros 2.8.0 requires php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 8
    - laravel/framework is locked to version v7.30.5 and an update of this package was not requested.
    - laravel/framework v7.30.5 requires php ^7.2.5|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 9
    - laravel/passport is locked to version v8.5.0 and an update of this package was not requested.
    - laravel/passport v8.5.0 requires php ^7.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 10
    - laravel/tinker is locked to version v2.6.2 and an update of this package was not requested.
    - laravel/tinker v2.6.2 requires php ^7.2.5|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 11
    - league/commonmark is locked to version 1.6.6 and an update of this package was not requested.
    - league/commonmark 1.6.6 requires php ^7.1 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 12
    - league/flysystem is locked to version 1.1.8 and an update of this package was not requested.
    - league/flysystem 1.1.8 requires php ^7.2.5 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 13
    - league/mime-type-detection is locked to version 1.9.0 and an update of this package was not requested.
    - league/mime-type-detection 1.9.0 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 14
    - league/oauth2-server is locked to version 8.1.1 and an update of this package was not requested.
    - league/oauth2-server 8.1.1 requires php >=7.2.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 15
    - maatwebsite/excel is locked to version 3.1.33 and an update of this package was not requested.
    - maatwebsite/excel 3.1.33 requires php ^7.0|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 16
    - maennchen/zipstream-php is locked to version 2.1.0 and an update of this package was not requested.
    - maennchen/zipstream-php 2.1.0 requires php >= 7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 17
    - markbaker/complex is locked to version 3.0.1 and an update of this package was not requested.
    - markbaker/complex 3.0.1 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 18
    - markbaker/matrix is locked to version 3.0.0 and an update of this package was not requested.
    - markbaker/matrix 3.0.0 requires php ^7.1 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 19
    - monolog/monolog is locked to version 2.3.5 and an update of this package was not requested.
    - monolog/monolog 2.3.5 requires php >=7.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 20
    - myclabs/php-enum is locked to version 1.8.3 and an update of this package was not requested.
    - myclabs/php-enum 1.8.3 requires php ^7.3 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 21
    - nesbot/carbon is locked to version 2.54.0 and an update of this package was not requested.
    - nesbot/carbon 2.54.0 requires php ^7.1.8 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 22
    - nikic/php-parser is locked to version v4.13.2 and an update of this package was not requested.
    - nikic/php-parser v4.13.2 requires php >=7.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 23
    - nyholm/psr7 is locked to version 1.4.1 and an update of this package was not requested.
    - nyholm/psr7 1.4.1 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 24
    - paragonie/random_compat is locked to version v9.99.100 and an update of this package was not requested.
    - paragonie/random_compat v9.99.100 requires php >= 7 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 25
    - phpoffice/phpspreadsheet is locked to version 1.20.0 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.20.0 requires php ^7.3 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 26
    - phpoption/phpoption is locked to version 1.8.0 and an update of this package was not requested.
    - phpoption/phpoption 1.8.0 requires php ^7.0 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 27
    - psr/container is locked to version 1.1.2 and an update of this package was not requested.
    - psr/container 1.1.2 requires php >=7.4.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 28
    - psr/event-dispatcher is locked to version 1.0.0 and an update of this package was not requested.
    - psr/event-dispatcher 1.0.0 requires php >=7.2.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 29
    - psr/http-client is locked to version 1.0.1 and an update of this package was not requested.
    - psr/http-client 1.0.1 requires php ^7.0 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 30
    - psr/http-factory is locked to version 1.0.1 and an update of this package was not requested.
    - psr/http-factory 1.0.1 requires php >=7.0.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 31
    - psr/log is locked to version 2.0.0 and an update of this package was not requested.
    - psr/log 2.0.0 requires php >=8.0.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 32
    - queueworker/sansdaemon is locked to version v1.2.4 and an update of this package was not requested.
    - queueworker/sansdaemon v1.2.4 requires php ^7.2|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 33
    - ramsey/collection is locked to version 1.2.2 and an update of this package was not requested.
    - ramsey/collection 1.2.2 requires php ^7.3 || ^8 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 34
    - ramsey/uuid is locked to version 4.2.3 and an update of this package was not requested.
    - ramsey/uuid 4.2.3 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 35
    - spatie/laravel-permission is locked to version 3.18.0 and an update of this package was not requested.
    - spatie/laravel-permission 3.18.0 requires php ^7.2.5|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 36
    - swiftmailer/swiftmailer is locked to version v6.3.0 and an update of this package was not requested.
    - swiftmailer/swiftmailer v6.3.0 requires php >=7.0.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 37
    - symfony/console is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/console v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 38
    - symfony/css-selector is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/css-selector v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 39
    - symfony/deprecation-contracts is locked to version v3.0.0 and an update of this package was not requested.
    - symfony/deprecation-contracts v3.0.0 requires php >=8.0.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 40
    - symfony/error-handler is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/error-handler v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 41
    - symfony/event-dispatcher is locked to version v6.0.0 and an update of this package was not requested.
    - symfony/event-dispatcher v6.0.0 requires php >=8.0.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 42
    - symfony/event-dispatcher-contracts is locked to version v3.0.0 and an update of this package was not requested.
    - symfony/event-dispatcher-contracts v3.0.0 requires php >=8.0.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 43
    - symfony/finder is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/finder v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 44
    - symfony/http-foundation is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/http-foundation v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 45
    - symfony/http-kernel is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/http-kernel v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 46
    - symfony/mime is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/mime v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 47
    - symfony/polyfill-ctype is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-ctype v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 48
    - symfony/polyfill-iconv is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-iconv v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 49
    - symfony/polyfill-intl-grapheme is locked to version v1.23.1 and an update of this package was not requested.
    - symfony/polyfill-intl-grapheme v1.23.1 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 50
    - symfony/polyfill-intl-idn is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-intl-idn v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 51
    - symfony/polyfill-intl-normalizer is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-intl-normalizer v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 52
    - symfony/polyfill-mbstring is locked to version v1.23.1 and an update of this package was not requested.
    - symfony/polyfill-mbstring v1.23.1 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 53
    - symfony/polyfill-php72 is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-php72 v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 54
    - symfony/polyfill-php73 is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-php73 v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 55
    - symfony/polyfill-php80 is locked to version v1.23.1 and an update of this package was not requested.
    - symfony/polyfill-php80 v1.23.1 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 56
    - symfony/polyfill-php81 is locked to version v1.23.0 and an update of this package was not requested.
    - symfony/polyfill-php81 v1.23.0 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 57
    - symfony/process is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/process v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 58
    - symfony/psr-http-message-bridge is locked to version v2.1.2 and an update of this package was not requested.
    - symfony/psr-http-message-bridge v2.1.2 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 59
    - symfony/routing is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/routing v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 60
    - symfony/service-contracts is locked to version v2.4.1 and an update of this package was not requested.
    - symfony/service-contracts v2.4.1 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 61
    - symfony/string is locked to version v6.0.0 and an update of this package was not requested.
    - symfony/string v6.0.0 requires php >=8.0.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 62
    - symfony/translation is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/translation v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 63
    - symfony/translation-contracts is locked to version v2.5.0 and an update of this package was not requested.
    - symfony/translation-contracts v2.5.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 64
    - symfony/var-dumper is locked to version v5.4.0 and an update of this package was not requested.
    - symfony/var-dumper v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 65
    - voku/portable-ascii is locked to version 1.5.6 and an update of this package was not requested.
    - voku/portable-ascii 1.5.6 requires php >=7.0.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 66
    - doctrine/instantiator is locked to version 1.4.0 and an update of this package was not requested.
    - doctrine/instantiator 1.4.0 requires php ^7.1 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 67
    - facade/flare-client-php is locked to version 1.9.1 and an update of this package was not requested.
    - facade/flare-client-php 1.9.1 requires php ^7.1|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 68
    - facade/ignition is locked to version 2.17.2 and an update of this package was not requested.
    - facade/ignition 2.17.2 requires php ^7.2.5|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 69
    - facade/ignition-contracts is locked to version 1.0.2 and an update of this package was not requested.
    - facade/ignition-contracts 1.0.2 requires php ^7.3|^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 70
    - mockery/mockery is locked to version 1.4.4 and an update of this package was not requested.
    - mockery/mockery 1.4.4 requires php ^7.3 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 71
    - myclabs/deep-copy is locked to version 1.10.2 and an update of this package was not requested.
    - myclabs/deep-copy 1.10.2 requires php ^7.1 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 72
    - nunomaduro/collision is locked to version v4.3.0 and an update of this package was not requested.
    - nunomaduro/collision v4.3.0 requires php ^7.2.5 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 73
    - phar-io/manifest is locked to version 2.0.3 and an update of this package was not requested.
    - phar-io/manifest 2.0.3 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 74
    - phar-io/version is locked to version 3.1.0 and an update of this package was not requested.
    - phar-io/version 3.1.0 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 75
    - phpdocumentor/reflection-common is locked to version 2.2.0 and an update of this package was not requested.
    - phpdocumentor/reflection-common 2.2.0 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 76
    - phpdocumentor/reflection-docblock is locked to version 5.3.0 and an update of this package was not requested.
    - phpdocumentor/reflection-docblock 5.3.0 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 77
    - phpdocumentor/type-resolver is locked to version 1.5.1 and an update of this package was not requested.
    - phpdocumentor/type-resolver 1.5.1 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 78
    - phpspec/prophecy is locked to version 1.14.0 and an update of this package was not requested.
    - phpspec/prophecy 1.14.0 requires php ^7.2 || ~8.0, <8.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 79
    - phpunit/php-code-coverage is locked to version 7.0.15 and an update of this package was not requested.
    - phpunit/php-code-coverage 7.0.15 requires php >=7.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 80
    - phpunit/php-file-iterator is locked to version 2.0.4 and an update of this package was not requested.
    - phpunit/php-file-iterator 2.0.4 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 81
    - phpunit/php-timer is locked to version 2.1.3 and an update of this package was not requested.
    - phpunit/php-timer 2.1.3 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 82
    - phpunit/php-token-stream is locked to version 4.0.4 and an update of this package was not requested.
    - phpunit/php-token-stream 4.0.4 requires php ^7.3 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 83
    - phpunit/phpunit is locked to version 8.5.21 and an update of this package was not requested.
    - phpunit/phpunit 8.5.21 requires php >=7.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 84
    - sebastian/comparator is locked to version 3.0.3 and an update of this package was not requested.
    - sebastian/comparator 3.0.3 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 85
    - sebastian/diff is locked to version 3.0.3 and an update of this package was not requested.
    - sebastian/diff 3.0.3 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 86
    - sebastian/environment is locked to version 4.2.4 and an update of this package was not requested.
    - sebastian/environment 4.2.4 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 87
    - sebastian/exporter is locked to version 3.1.4 and an update of this package was not requested.
    - sebastian/exporter 3.1.4 requires php >=7.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 88
    - sebastian/global-state is locked to version 3.0.1 and an update of this package was not requested.
    - sebastian/global-state 3.0.1 requires php >=7.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 89
    - sebastian/object-enumerator is locked to version 3.0.4 and an update of this package was not requested.
    - sebastian/object-enumerator 3.0.4 requires php >=7.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 90
    - sebastian/object-reflector is locked to version 1.1.2 and an update of this package was not requested.
    - sebastian/object-reflector 1.1.2 requires php >=7.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 91
    - sebastian/recursion-context is locked to version 3.0.1 and an update of this package was not requested.
    - sebastian/recursion-context 3.0.1 requires php >=7.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 92
    - sebastian/resource-operations is locked to version 2.0.2 and an update of this package was not requested.
    - sebastian/resource-operations 2.0.2 requires php >=7.1 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 93
    - sebastian/type is locked to version 1.1.4 and an update of this package was not requested.
    - sebastian/type 1.1.4 requires php >=7.2 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 94
    - theseer/tokenizer is locked to version 1.2.1 and an update of this package was not requested.
    - theseer/tokenizer 1.2.1 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 95
    - webmozart/assert is locked to version 1.10.0 and an update of this package was not requested.
    - webmozart/assert 1.10.0 requires php ^7.2 || ^8.0 -> your php version (5.6.40) does not satisfy that requirement.
  Problem 96
    - symfony/http-foundation v5.4.0 requires php >=7.2.5 -> your php version (5.6.40) does not satisfy that requirement.
    - asm89/stack-cors 1.3.0 requires symfony/http-foundation ~2.7|~3.0|~4.0|~5.0 -> satisfiable by symfony/http-foundation[v5.4.0].
    - asm89/stack-cors is locked to version 1.3.0 and an update of this package was not requested.

automica's avatar

@shaher11 looks like your servers php version needs to go up to 7.3 or above.

- Root composer.json requires php ^7.2.5 but your php version (5.6.40) does not satisfy that requirement.

In your CPANEL admin, you should be able to do this via ' PHP Selector'

Sinnbeck's avatar

@shaher11 Are you running all commands the same way?

When you run php -v you get 7.3 and when you run php /opt/cpanel/composer/bin/composer install you get 5.6 ? Something is off. There might be more than one place you need to change it

syahmi12's avatar

run composer install --ignore-platform-reqs work for me

Please or to participate in this conversation.