How to upgrade Magento 2.2 to Magento 2.3 version?

Magento 2.3 Upgrade from already existing Magento older version, You need to follow some basic steps.

Magento 2.3 Upgrade from Magento older version is a little bit tricky. You can’t just upgrade using only changes in magento/product-community-edition and version line from the composer.json file.

Upgrade using the command line Magento 2.3,

  • Prerequisites:
    You must have PHP 7.2 installed for Magento 2.3 (PHP 7.1.3+ is also supported)

First Take all the process in staging server before going to live, so you can assure the status of the latest version is working fine in your staging server.

For Upgrade Magento to Latest Magento 2.3 version, follow below steps;

— Backup the existing composer.json file from a root in the Magento installation directory.

Run from Command line below commands,

1.  First Command

2.  Second Command

composer require –dev phpunit/phpunit:~6.2.0 friendsofphp/php-cs-fixer:~2.10.1 lusitanian/oauth:~0.8.10 pdepend/pdepend:2.5.2 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:3.2.2 –no-update

3. Update autoload from composer.json

Open composer.json and edit the “autoload“: “psr-4” section to add new dependency after “Magento\\”: “app/code/Magento/” line.

“Zend\\Mvc\\Controller\\”: “setup/src/Zend/Mvc/Controller/”

Your new composer.json look like below now,

4. Final Command,

After run above command, Takes some time to upload new extension and packages. wait for around 10 minutes.

Once Successfully updated to Magento 2.3 you need to run below command to register new module in Magento.

Run from Magento Root Instance,

Now you can check the backend of your site, You got new version installed.
You can see your version from backend at right bottom side with status like Magento ver. 2.3.0

You can check the new feature of Magento 2.3 from the link, Latest Feature of Magento 2.3

After upgrade from older to latest version 2.3, you have default all the Multi-Store Inventory(MSI) module are disabled. If you want to use MSI feature for your site you need to enable all the inventory module from app/etc/config.php file manually and after enable you to need to run upgrade command.

To enable all the Multistore Inventory Module, You need to run below commands from the root path of your Magento instance,

 

 

One Reply to “How to upgrade Magento 2.2 to Magento 2.3 version?”

  1. Hey,

    I noticed when you said “composer require –dev phpunit/phpunit:~6.2.0 friendsofphp/php-cs-fixer:~2.10.1 lusitanian/oauth:~0.8.10 pdepend/pdepend:2.5.2 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:3.2.2 –no-update” you made the mistake of only using one -. If you use a whole word you need to use 2 –.

    But great article though!!

Leave a Reply

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