Currently my client's website in Magento 2.0 (running on PHP-5.6). Now we want to upgrade it to Magento-2.3. Please help me in upgrading the website.
4 Answers
- Upgrade your PHP version to 7.1.3 or 7.2.0+
- Enable Maintenance mode
php bin/magento maintenance:enable
- Backup your
composer.json
file - Update the comoser.json file
composer require magento/product-community-edition=2.3.0 --no-update
- Apply the updates
composer update
Remove the cache and generated directories
rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf generated/code/*
Update the Database schema an data
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
Disable Maintenance mode
php bin/magento maintenance:disable
After upgrade if you face any errors please do check your file permissions for var, pub and generated directories.
If you still face any errors check your third party modules and fix them.
I tired upgrading from 2.3 to 2.3.1 and the process is very much broken. If you get any errors in the check phase talk to your webhost as its probably a server side issue, if you get past the check phase make sure you back everything up as this is where the process crashed for me.
It's Very Easy. I Upgraded two websites In Magento 2.3.1
upgrade your PHP-5.6 to PHP Version 7.1.28
Open composer.json
file
See Below Screenshot
Put this code on line no.5 "version": "2.3.1",
Put this code on line no.11 "magento/product-community-edition": "2.3.1",
Put this code on line no.28 "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
Put a comma in last line no.27 ,
And Run composer update
Command and After Complete composer update
Command run
php bin/magento setup:upgrade; php bin/magento setup:static-content:deploy -f;
Also You show Any error then see link
How to Upgrade magento version from 2.2.X to 2.3.0?