1

i am upgrading magento version like
magento 2.2.6 to magento 2.3.3
and my php version is 7.2
but still not run command

enter image description here

and my PHP CLI version

anyone facing this issue?
which command needed in magento 2.3.3 upgrade?
Any help would be appreciated.

Thanks.

  • create info.php file and write this code : <?php phpinfo(); ?> and run this file in browser and check which php version display there – Naresh Rupareliya Dec 12 '19 at 5:42
  • 7.2 version same – Rakesh Donga Dec 12 '19 at 5:43
  • What is your composer version ? – Kishan Savaliya Dec 12 '19 at 5:53
  • Please try to run composer -v and check – Kishan Savaliya Dec 12 '19 at 5:53
  • @KishanSavaliya i have checked php -v and showing 5.3 and but my server team told me check this way.. /hsphere/shared/php72/bin/php-cli -v – Rakesh Donga Dec 12 '19 at 5:56
4

Try to run below command

php71 /usr/local/bin/composer.phar require magento/project-community-edition=2.3.3 --no-update

You can use below line instead of composer

php71 /usr/local/bin/composer.phar

Update

Try to run commands in below sequence to upgrade Magento version from 2.2.6 to 2.3.3

- php71 bin/magento maintenance:enable
- cp composer.json composer.json.bak
- php71 /usr/local/bin/composer.phar remove magento/product-community-edition --no-update
- php71 /usr/local/bin/composer.phar require magento/product-community-edition=2.3.3 --no-update
- php71 /usr/local/bin/composer.phar require --dev allure-framework/allure-phpunit:~1.2.0 friendsofphp/php-cs-fixer:~2.14.0 lusitanian/oauth:~0.8.10 magento/magento-coding-standard:~3.0.0 magento/magento2-functional-testing-framework:2.4.5 pdepend/pdepend:2.5.2 phpmd/phpmd:@stable phpunit/phpunit:~6.5.0 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:~3.4.0 --sort-packages --no-update
- php71 /usr/local/bin/composer.phar remove --dev sjparkinson/static-review fabpot/php-cs-fixer --no-update
- rm -rf update
- mv temp_dir/update .
- rm -rf temp_dir
- php71 /usr/local/bin/composer.phar update
- php71 bin/magento cache:clean
- php71 bin/magento setup:upgrade

Ref link

Hope this will help you!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.