{"id":5496,"date":"2021-11-09T14:21:22","date_gmt":"2021-11-09T14:21:22","guid":{"rendered":"https:\/\/sloupok.com\/?p=5496"},"modified":"2021-11-12T07:57:57","modified_gmt":"2021-11-12T07:57:57","slug":"how-to-update-magento-via-copmoser","status":"publish","type":"post","link":"https:\/\/sloupok.com\/how-to-update-magento-via-copmoser","title":{"rendered":"how to update Magento via Copmoser"},"content":{"rendered":"\n
use SSH terminal, find public_html<\/strong> folder and type:<\/p>\n\n\n\n next step:<\/p>\n\n\n After upgrade, check your Magento version with the following command:<\/p>\n\n\n use SSH terminal, find public_html folder and type: php bin\/magento maintenance:enable php bin\/magento cache:disable composer require magento\/product-community-edition 2.4.3 –no-update (for version 2.4.3 -p1 use “composer require-commerce magento\/” but if you need install 2.4.3 -p1 you should install 2.4.3 first) composer …<\/p>\nphp bin\/magento maintenance:enable\nphp bin\/magento cache:disable\ncomposer require magento\/product-community-edition 2.4.3 --no-update (for version 2.4.3 -p1 use \"composer require-commerce magento\/\" but if you need install 2.4.3 -p1 you should install 2.4.3 first)<\/strong>\ncomposer update\nrm -rf var\/di var\/generation\nphp bin\/magento cache:flush<\/pre>\n\n\n\n
sometime you need use this, but be careful:\n\nphp bin\/magento cache:flush config\nphp bin\/magento cache:flush layout\nphp bin\/magento cache:flush block_html\nphp bin\/magento cache:flush collections\nphp bin\/magento cache:flush reflection\nphp bin\/magento cache:flush db_ddl\nphp bin\/magento cache:flush compiled_config\nphp bin\/magento cache:flush eav\nphp bin\/magento cache:flush customer_notification\nphp bin\/magento cache:flush config_integration\nphp bin\/magento cache:flush config_integration_api\nphp bin\/magento cache:flush full_page\nphp bin\/magento cache:flush config_webservice\nphp bin\/magento cache:flush translate\nphp bin\/magento cache:flush vertex<\/code><\/pre>\n\n\n
php bin\/magento setup:upgrade\nphp bin\/magento setup:di:compile\nphp bin\/magento indexer:reindex\nphp bin\/magento maintenance:disable\nphp bin\/magento cache:enable<\/pre>\n\n\n
php bin\/magento --version<\/pre>\n","protected":false},"excerpt":{"rendered":"