Today, I will share with you how to upgrade Magento from 2.4.7 to 2.4.8.
Step 1. Turn on maintenance mode and backup database and Magento files
First, you must log in SSH account, go to root folder of your Magento and then try the command lines.
1.1 Turn on maintenance mode:
php bin/magento maintenance:enable
1.2 Backup database
php -dmemory_limit=2G bin/magento config:set system/backup/functionality_enabled 1
php -dmemory_limit=2G bin/magento setup:backup --db
1.3 backup code
php -dmemory_limit=2G bin/magento setup:backup --code
Or you can try zip all Magento files by command line
zip -r public_html public_html
With public_html is folder of your Magento
Step 2. Change version PHP and upgrade source code by composer
Before going to this step, you must install composer on your server.
2.1 Change version of PHP
Change version of PHP to 8.2 or 8.3 or 8.4
In my case my PHP version is 8.3.17. So, I don’t need to change it.
2.2 backup file composer.json, composer.lock, .htaccess
cp composer.json composer.json.bak
cp composer.lock composer.lock_bak
cp .htaccess .htaccess_bak
2.3 Update file composer.json
Run command line:
Update file composer.json
From
"version": "2.4.7",
To
"version": "2.4.8",
From
"require": {
"php": "~8.1.0||~8.2.0||~8.3.0",
"ext-bcmath": "*",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
"ext-gd": "*",
"ext-hash": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-pdo_mysql": "*",
"ext-simplexml": "*",
"ext-soap": "*",
"ext-sodium": "*",
"ext-xsl": "*",
"ext-zip": "*",
"lib-libxml": "*",
"colinmollenhour/cache-backend-file": "^1.4",
"colinmollenhour/cache-backend-redis": "^1.16",
"colinmollenhour/credis": "^1.15",
"colinmollenhour/php-redis-session-abstract": "^1.5",
"composer/composer": "^2.0, !=2.2.16",
"elasticsearch/elasticsearch": "~7.17.0 || ~8.5.0",
"ezyang/htmlpurifier": "^4.17",
"guzzlehttp/guzzle": "^7.5",
"laminas/laminas-captcha": "^2.17",
"laminas/laminas-code": "^4.13",
"laminas/laminas-db": "^2.19",
"laminas/laminas-di": "^3.13",
"laminas/laminas-escaper": "^2.13",
"laminas/laminas-eventmanager": "^3.11",
"laminas/laminas-feed": "^2.22",
"laminas/laminas-file": "^2.13",
"laminas/laminas-filter": "^2.33",
"laminas/laminas-http": "^2.15",
"laminas/laminas-i18n": "^2.17",
"laminas/laminas-mail": "^2.16",
"laminas/laminas-mime": "^2.9",
"laminas/laminas-modulemanager": "^2.11",
"laminas/laminas-mvc": "^3.6",
"laminas/laminas-oauth": "^2.6",
"laminas/laminas-permissions-acl": "^2.10",
"laminas/laminas-server": "^2.16",
"laminas/laminas-servicemanager": "^3.16",
"laminas/laminas-soap": "^2.10",
"laminas/laminas-stdlib": "^3.11",
"laminas/laminas-uri": "^2.9",
"laminas/laminas-validator": "^2.23",
"league/flysystem": "^2.4",
"league/flysystem-aws-s3-v3": "^2.4",
"magento/composer": "^1.10.0-beta1",
"magento/composer-dependency-version-audit-plugin": "^0.1",
"magento/magento-composer-installer": ">=0.4.0",
"magento/zend-cache": "^1.16",
"magento/zend-db": "^1.16",
"magento/zend-pdf": "^1.16",
"monolog/monolog": "^2.7",
"opensearch-project/opensearch-php": "^1.0 || ^2.0",
"pelago/emogrifier": "^7.0",
"php-amqplib/php-amqplib": "^3.2",
"phpseclib/mcrypt_compat": "^2.0",
"phpseclib/phpseclib": "^3.0",
"psr/log": "^2 || ^3",
"ramsey/uuid": "^4.2",
"symfony/console": "^6.4",
"symfony/intl": "^6.4",
"symfony/process": "^6.4",
"symfony/string": "^6.4",
"tedivm/jshrink": "^1.4",
"tubalmartin/cssmin": "^4.1",
"web-token/jwt-framework": "^3.1",
"webonyx/graphql-php": "^15.0",
"wikimedia/less.php": "^3.2"
},
To
"require": {
"php": "~8.2.0||~8.3.0||~8.4.0",
"ext-bcmath": "*",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
"ext-ftp": "*",
"ext-gd": "*",
"ext-hash": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-pdo_mysql": "*",
"ext-simplexml": "*",
"ext-soap": "*",
"ext-sodium": "*",
"ext-xsl": "*",
"ext-zip": "*",
"lib-libxml": "*",
"colinmollenhour/cache-backend-file": "^1.4",
"colinmollenhour/cache-backend-redis": "^1.16",
"colinmollenhour/credis": "^1.15",
"colinmollenhour/php-redis-session-abstract": "^2.0",
"composer/composer": "^2.0, !=2.2.16",
"elasticsearch/elasticsearch": "^8.15",
"duosecurity/duo_api_php": "^1.1",
"duosecurity/duo_universal_php": "^1.0",
"ezyang/htmlpurifier": "^4.17",
"guzzlehttp/guzzle": "^7.5",
"laminas/laminas-captcha": "^2.18",
"laminas/laminas-code": "^4.13",
"magento/magento-zf-db": "^3.21",
"laminas/laminas-di": "^3.15",
"laminas/laminas-escaper": "^2.13",
"laminas/laminas-eventmanager": "^3.11",
"laminas/laminas-feed": "^2.22",
"laminas/laminas-filter": "^2.33",
"laminas/laminas-http": "^2.15",
"laminas/laminas-i18n": "^2.17",
"laminas/laminas-modulemanager": "^2.11",
"laminas/laminas-mvc": "^3.6",
"laminas/laminas-permissions-acl": "^2.10",
"laminas/laminas-servicemanager": "^3.16",
"laminas/laminas-soap": "^2.10",
"laminas/laminas-stdlib": "^3.11",
"laminas/laminas-uri": "^2.9",
"laminas/laminas-validator": "^2.23",
"league/flysystem": "^3.0",
"league/flysystem-aws-s3-v3": "^3.0",
"magento/composer": "^1.10.1-beta1",
"magento/composer-dependency-version-audit-plugin": "^0.1",
"magento/magento-composer-installer": ">=0.4.0",
"magento/zend-cache": "^1.16",
"magento/zend-db": "^1.16",
"magento/zend-pdf": "^1.16",
"monolog/monolog": "^3.6",
"opensearch-project/opensearch-php": "^2.3",
"pelago/emogrifier": "^7.0",
"php-amqplib/php-amqplib": "^3.2",
"phpseclib/mcrypt_compat": "^2.0",
"phpseclib/phpseclib": "^3.0",
"psr/log": "^2 || ^3",
"ramsey/uuid": "^4.2",
"symfony/console": "^6.4",
"symfony/intl": "^6.4",
"symfony/process": "^6.4",
"symfony/string": "^6.4",
"symfony/mailer": "^6.4",
"symfony/mime": "^6.4",
"tedivm/jshrink": "^1.4",
"tubalmartin/cssmin": "^4.1",
"web-token/jwt-framework": "^3.4",
"webonyx/graphql-php": "^15.0",
"wikimedia/less.php": "^5.0"
},
From
"require-dev": {
"allure-framework/allure-phpunit": "^2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
"dg/bypass-finals": "^1.4",
"friendsofphp/php-cs-fixer": "^3.22",
"lusitanian/oauth": "^0.8",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "^4.7",
"pdepend/pdepend": "^2.10",
"phpmd/phpmd": "^2.12",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"sebastian/phpcpd": "^6.0",
"symfony/finder": "^6.4"
},
To
"require-dev": {
"magento/magento-allure-phpunit": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
"dg/bypass-finals": "^1.4",
"friendsofphp/php-cs-fixer": "^3.22",
"carlos-mg89/oauth": "^0.8.17",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "^5.0",
"pdepend/pdepend": "3.x-dev",
"phpmd/phpmd": "3.x-dev",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^10.5",
"symfony/finder": "^6.4"
},
From
"replace": {
"magento/module-marketplace": "100.4.5",
"magento/module-admin-analytics": "100.4.6",
"magento/module-admin-notification": "100.4.6",
"magento/module-advanced-pricing-import-export": "100.4.7",
"magento/module-advanced-search": "100.4.5",
"magento/module-amqp": "100.4.4",
"magento/module-analytics": "100.4.7",
"magento/module-application-performance-monitor": "100.4.0",
"magento/module-application-performance-monitor-new-relic": "100.4.0",
"magento/module-asynchronous-operations": "100.4.7",
"magento/module-authorization": "100.4.7",
"magento/module-backend": "102.0.7",
"magento/module-backup": "100.4.7",
"magento/module-bundle": "101.0.7",
"magento/module-bundle-graph-ql": "100.4.7",
"magento/module-bundle-import-export": "100.4.6",
"magento/module-cache-invalidate": "100.4.5",
"magento/module-captcha": "100.4.7",
"magento/module-cardinal-commerce": "100.4.5",
"magento/module-catalog": "104.0.7",
"magento/module-catalog-customer-graph-ql": "100.4.6",
"magento/module-catalog-analytics": "100.4.4",
"magento/module-catalog-import-export": "101.1.7",
"magento/module-catalog-inventory": "100.4.7",
"magento/module-catalog-inventory-graph-ql": "100.4.4",
"magento/module-catalog-rule": "101.2.7",
"magento/module-catalog-rule-graph-ql": "100.4.4",
"magento/module-catalog-rule-configurable": "100.4.6",
"magento/module-catalog-search": "102.0.7",
"magento/module-catalog-url-rewrite": "100.4.7",
"magento/module-catalog-widget": "100.4.7",
"magento/module-checkout": "100.4.7",
"magento/module-checkout-agreements": "100.4.6",
"magento/module-checkout-agreements-graph-ql": "100.4.3",
"magento/module-cms": "104.0.7",
"magento/module-cms-url-rewrite": "100.4.6",
"magento/module-compare-list-graph-ql": "100.4.3",
"magento/module-config": "101.2.7",
"magento/module-async-config": "100.4.0",
"magento/module-configurable-import-export": "100.4.5",
"magento/module-configurable-product": "100.4.7",
"magento/module-configurable-product-sales": "100.4.4",
"magento/module-contact": "100.4.6",
"magento/module-contact-graph-ql": "100.4.0",
"magento/module-cookie": "100.4.7",
"magento/module-cron": "100.4.7",
"magento/module-currency-symbol": "100.4.5",
"magento/module-customer": "103.0.7",
"magento/module-customer-analytics": "100.4.4",
"magento/module-customer-downloadable-graph-ql": "100.4.3",
"magento/module-customer-import-export": "100.4.7",
"magento/module-deploy": "100.4.7",
"magento/module-developer": "100.4.7",
"magento/module-dhl": "100.4.6",
"magento/module-directory": "100.4.7",
"magento/module-directory-graph-ql": "100.4.5",
"magento/module-downloadable": "100.4.7",
"magento/module-downloadable-graph-ql": "100.4.7",
"magento/module-downloadable-import-export": "100.4.6",
"magento/module-eav": "102.1.7",
"magento/module-open-search": "100.4.1",
"magento/module-elasticsearch": "101.0.7",
"magento/module-elasticsearch-7": "100.4.7",
"magento/module-email": "101.1.7",
"magento/module-encryption-key": "100.4.5",
"magento/module-fedex": "100.4.5",
"magento/module-gift-message": "100.4.6",
"magento/module-gift-message-graph-ql": "100.4.5",
"magento/module-google-adwords": "100.4.4",
"magento/module-google-analytics": "100.4.3",
"magento/module-google-optimizer": "100.4.6",
"magento/module-google-gtag": "100.4.2",
"magento/module-graph-ql": "100.4.7",
"magento/module-graph-ql-cache": "100.4.4",
"magento/module-graph-ql-new-relic": "100.4.0",
"magento/module-graph-ql-resolver-cache": "100.4.0",
"magento/module-catalog-graph-ql": "100.4.7",
"magento/module-catalog-cms-graph-ql": "100.4.3",
"magento/module-catalog-url-rewrite-graph-ql": "100.4.5",
"magento/module-configurable-product-graph-ql": "100.4.7",
"magento/module-customer-graph-ql": "100.4.7",
"magento/module-eav-graph-ql": "100.4.4",
"magento/module-swatches-graph-ql": "100.4.5",
"magento/module-tax-graph-ql": "100.4.3",
"magento/module-url-rewrite-graph-ql": "100.4.6",
"magento/module-cms-url-rewrite-graph-ql": "100.4.5",
"magento/module-weee-graph-ql": "100.4.4",
"magento/module-cms-graph-ql": "100.4.4",
"magento/module-grouped-import-export": "100.4.5",
"magento/module-grouped-product": "100.4.7",
"magento/module-grouped-catalog-inventory": "100.4.4",
"magento/module-grouped-product-graph-ql": "100.4.7",
"magento/module-import-export": "101.0.7",
"magento/module-indexer": "100.4.7",
"magento/module-instant-purchase": "100.4.6",
"magento/module-integration": "100.4.7",
"magento/module-integration-graph-ql": "100.4.0",
"magento/module-layered-navigation": "100.4.7",
"magento/module-login-as-customer": "100.4.7",
"magento/module-login-as-customer-admin-ui": "100.4.7",
"magento/module-login-as-customer-api": "100.4.6",
"magento/module-login-as-customer-assistance": "100.4.6",
"magento/module-login-as-customer-frontend-ui": "100.4.6",
"magento/module-login-as-customer-graph-ql": "100.4.4",
"magento/module-login-as-customer-log": "100.4.5",
"magento/module-login-as-customer-quote": "100.4.5",
"magento/module-login-as-customer-page-cache": "100.4.6",
"magento/module-login-as-customer-sales": "100.4.6",
"magento/module-media-content": "100.4.5",
"magento/module-media-content-api": "100.4.6",
"magento/module-media-content-catalog": "100.4.5",
"magento/module-media-content-cms": "100.4.5",
"magento/module-media-gallery": "100.4.6",
"magento/module-media-gallery-api": "101.0.6",
"magento/module-media-gallery-ui": "100.4.6",
"magento/module-media-gallery-ui-api": "100.4.5",
"magento/module-media-gallery-integration": "100.4.6",
"magento/module-media-gallery-synchronization": "100.4.6",
"magento/module-media-gallery-synchronization-api": "100.4.5",
"magento/module-media-content-synchronization": "100.4.6",
"magento/module-media-content-synchronization-api": "100.4.5",
"magento/module-media-content-synchronization-catalog": "100.4.4",
"magento/module-media-content-synchronization-cms": "100.4.4",
"magento/module-media-gallery-synchronization-metadata": "100.4.3",
"magento/module-media-gallery-metadata": "100.4.5",
"magento/module-media-gallery-metadata-api": "100.4.4",
"magento/module-media-gallery-catalog-ui": "100.4.4",
"magento/module-media-gallery-cms-ui": "100.4.4",
"magento/module-media-gallery-catalog-integration": "100.4.4",
"magento/module-media-gallery-catalog": "100.4.4",
"magento/module-media-gallery-renditions": "100.4.5",
"magento/module-media-gallery-renditions-api": "100.4.4",
"magento/module-media-storage": "100.4.6",
"magento/module-message-queue": "100.4.7",
"magento/module-msrp": "100.4.6",
"magento/module-msrp-configurable-product": "100.4.4",
"magento/module-msrp-grouped-product": "100.4.4",
"magento/module-multishipping": "100.4.7",
"magento/module-mysql-mq": "100.4.5",
"magento/module-new-relic-reporting": "100.4.5",
"magento/module-newsletter": "100.4.7",
"magento/module-newsletter-graph-ql": "100.4.4",
"magento/module-offline-payments": "100.4.5",
"magento/module-offline-shipping": "100.4.6",
"magento/module-order-cancellation": "100.4.0",
"magento/module-order-cancellation-graph-ql": "100.4.0",
"magento/module-order-cancellation-ui": "100.4.0",
"magento/module-page-cache": "100.4.7",
"magento/module-payment": "100.4.7",
"magento/module-payment-graph-ql": "100.4.2",
"magento/module-paypal": "101.0.7",
"magento/module-paypal-captcha": "100.4.4",
"magento/module-paypal-graph-ql": "100.4.5",
"magento/module-persistent": "100.4.7",
"magento/module-product-alert": "100.4.6",
"magento/module-product-video": "100.4.7",
"magento/module-quote": "101.2.7",
"magento/module-quote-analytics": "100.4.6",
"magento/module-quote-bundle-options": "100.4.3",
"magento/module-quote-configurable-options": "100.4.3",
"magento/module-quote-downloadable-links": "100.4.3",
"magento/module-quote-graph-ql": "100.4.7",
"magento/module-related-product-graph-ql": "100.4.4",
"magento/module-release-notification": "100.4.5",
"magento/module-reports": "100.4.7",
"magento/module-require-js": "100.4.3",
"magento/module-review": "100.4.7",
"magento/module-review-graph-ql": "100.4.3",
"magento/module-review-analytics": "100.4.4",
"magento/module-robots": "101.1.3",
"magento/module-rss": "100.4.5",
"magento/module-rule": "100.4.6",
"magento/module-sales": "103.0.7",
"magento/module-sales-analytics": "100.4.4",
"magento/module-sales-graph-ql": "100.4.7",
"magento/module-sales-inventory": "100.4.4",
"magento/module-sales-rule": "101.2.7",
"magento/module-sales-rule-graph-ql": "100.4.0",
"magento/module-sales-sequence": "100.4.4",
"magento/module-sample-data": "100.4.5",
"magento/module-search": "101.1.7",
"magento/module-security": "100.4.7",
"magento/module-send-friend": "100.4.5",
"magento/module-send-friend-graph-ql": "100.4.3",
"magento/module-shipping": "100.4.7",
"magento/module-sitemap": "100.4.6",
"magento/module-store": "101.1.7",
"magento/module-store-graph-ql": "100.4.5",
"magento/module-swagger": "100.4.6",
"magento/module-swagger-webapi": "100.4.3",
"magento/module-swagger-webapi-async": "100.4.3",
"magento/module-swatches": "100.4.7",
"magento/module-swatches-layered-navigation": "100.4.3",
"magento/module-tax": "100.4.7",
"magento/module-tax-import-export": "100.4.6",
"magento/module-theme": "101.1.7",
"magento/module-theme-graph-ql": "100.4.4",
"magento/module-translation": "100.4.7",
"magento/module-ui": "101.2.7",
"magento/module-ups": "100.4.7",
"magento/module-url-rewrite": "102.0.6",
"magento/module-user": "101.2.7",
"magento/module-usps": "100.4.6",
"magento/module-variable": "100.4.5",
"magento/module-vault": "101.2.7",
"magento/module-vault-graph-ql": "100.4.3",
"magento/module-version": "100.4.4",
"magento/module-webapi": "100.4.6",
"magento/module-webapi-async": "100.4.5",
"magento/module-webapi-security": "100.4.4",
"magento/module-weee": "100.4.7",
"magento/module-widget": "101.2.7",
"magento/module-wishlist": "101.2.7",
"magento/module-wishlist-graph-ql": "100.4.7",
"magento/module-wishlist-analytics": "100.4.5",
"magento/theme-adminhtml-backend": "100.4.7",
"magento/theme-frontend-blank": "100.4.7",
"magento/theme-frontend-luma": "100.4.7",
"magento/language-de_de": "100.4.0",
"magento/language-en_us": "100.4.0",
"magento/language-es_es": "100.4.0",
"magento/language-fr_fr": "100.4.0",
"magento/language-nl_nl": "100.4.0",
"magento/language-pt_br": "100.4.0",
"magento/language-zh_hans_cn": "100.4.0",
"magento/framework": "103.0.7",
"magento/framework-amqp": "100.4.5",
"magento/framework-bulk": "101.0.3",
"magento/framework-message-queue": "100.4.7",
"trentrichardson/jquery-timepicker-addon": "1.4.3",
"components/jquery": "1.11.0",
"components/jqueryui": "1.10.4",
"twbs/bootstrap": "3.1.0",
"tinymce/tinymce": "3.4.7",
"magento/module-csp": "100.4.6",
"magento/module-aws-s3": "100.4.5",
"magento/module-remote-storage": "100.4.5",
"magento/module-jwt-framework-adapter": "100.4.3",
"magento/module-jwt-user-token": "100.4.2"
},
To
"replace": {
"magento/module-marketplace": "100.4.6",
"magento/module-admin-analytics": "100.4.7",
"magento/module-admin-notification": "100.4.7",
"magento/module-advanced-pricing-import-export": "100.4.8",
"magento/module-advanced-search": "100.4.6",
"magento/module-amqp": "100.4.5",
"magento/module-analytics": "100.4.8",
"magento/module-application-performance-monitor": "100.4.1",
"magento/module-application-performance-monitor-new-relic": "100.4.1",
"magento/module-asynchronous-operations": "100.4.8",
"magento/module-authorization": "100.4.8",
"magento/module-backend": "102.0.8",
"magento/module-backup": "100.4.8",
"magento/module-bundle": "101.0.8",
"magento/module-bundle-graph-ql": "100.4.8",
"magento/module-bundle-import-export": "100.4.7",
"magento/module-cache-invalidate": "100.4.6",
"magento/module-captcha": "100.4.8",
"magento/module-cardinal-commerce": "100.4.6",
"magento/module-catalog": "104.0.8",
"magento/module-catalog-customer-graph-ql": "100.4.7",
"magento/module-catalog-analytics": "100.4.5",
"magento/module-catalog-import-export": "101.1.8",
"magento/module-catalog-inventory": "100.4.8",
"magento/module-catalog-inventory-graph-ql": "100.4.5",
"magento/module-catalog-rule": "101.2.8",
"magento/module-catalog-rule-graph-ql": "100.4.5",
"magento/module-catalog-rule-configurable": "100.4.7",
"magento/module-catalog-search": "102.0.8",
"magento/module-catalog-url-rewrite": "100.4.8",
"magento/module-catalog-widget": "100.4.8",
"magento/module-checkout": "100.4.8",
"magento/module-checkout-agreements": "100.4.7",
"magento/module-checkout-agreements-graph-ql": "100.4.4",
"magento/module-cms": "104.0.8",
"magento/module-cms-url-rewrite": "100.4.7",
"magento/module-compare-list-graph-ql": "100.4.4",
"magento/module-config": "101.2.8",
"magento/module-async-config": "100.4.1",
"magento/module-configurable-import-export": "100.4.6",
"magento/module-configurable-product": "100.4.8",
"magento/module-configurable-product-sales": "100.4.5",
"magento/module-contact": "100.4.7",
"magento/module-contact-graph-ql": "100.4.1",
"magento/module-cookie": "100.4.8",
"magento/module-cron": "100.4.8",
"magento/module-currency-symbol": "100.4.6",
"magento/module-customer": "103.0.8",
"magento/module-customer-analytics": "100.4.5",
"magento/module-customer-downloadable-graph-ql": "100.4.4",
"magento/module-customer-import-export": "100.4.8",
"magento/module-deploy": "100.4.8",
"magento/module-developer": "100.4.8",
"magento/module-dhl": "100.4.7",
"magento/module-directory": "100.4.8",
"magento/module-directory-graph-ql": "100.4.6",
"magento/module-downloadable": "100.4.8",
"magento/module-downloadable-graph-ql": "100.4.8",
"magento/module-downloadable-import-export": "100.4.7",
"magento/module-eav": "102.1.8",
"magento/module-open-search": "100.4.2",
"magento/module-elasticsearch": "101.0.8",
"magento/module-elasticsearch-8": "101.0.0",
"magento/module-email": "101.1.8",
"magento/module-encryption-key": "100.4.6",
"magento/module-fedex": "100.4.6",
"magento/module-gift-message": "100.4.7",
"magento/module-gift-message-graph-ql": "100.4.6",
"magento/module-google-adwords": "100.4.5",
"magento/module-google-analytics": "100.4.4",
"magento/module-google-optimizer": "100.4.7",
"magento/module-google-gtag": "100.4.3",
"magento/module-graph-ql": "100.4.8",
"magento/module-graph-ql-cache": "100.4.5",
"magento/module-graph-ql-new-relic": "100.4.1",
"magento/module-graph-ql-resolver-cache": "100.4.1",
"magento/module-catalog-graph-ql": "100.4.8",
"magento/module-catalog-cms-graph-ql": "100.4.4",
"magento/module-catalog-url-rewrite-graph-ql": "100.4.6",
"magento/module-configurable-product-graph-ql": "100.4.8",
"magento/module-customer-graph-ql": "100.4.8",
"magento/module-eav-graph-ql": "100.4.5",
"magento/module-swatches-graph-ql": "100.4.6",
"magento/module-tax-graph-ql": "100.4.4",
"magento/module-url-rewrite-graph-ql": "100.4.7",
"magento/module-cms-url-rewrite-graph-ql": "100.4.6",
"magento/module-weee-graph-ql": "100.4.5",
"magento/module-cms-graph-ql": "100.4.5",
"magento/module-grouped-import-export": "100.4.6",
"magento/module-grouped-product": "100.4.8",
"magento/module-grouped-catalog-inventory": "100.4.5",
"magento/module-grouped-product-graph-ql": "100.4.8",
"magento/module-import-export": "101.0.8",
"magento/module-indexer": "100.4.8",
"magento/module-instant-purchase": "100.4.7",
"magento/module-integration": "100.4.8",
"magento/module-integration-graph-ql": "100.4.1",
"magento/module-layered-navigation": "100.4.8",
"magento/module-login-as-customer": "100.4.8",
"magento/module-login-as-customer-admin-ui": "100.4.8",
"magento/module-login-as-customer-api": "100.4.7",
"magento/module-login-as-customer-assistance": "100.4.7",
"magento/module-login-as-customer-frontend-ui": "100.4.7",
"magento/module-login-as-customer-graph-ql": "100.4.5",
"magento/module-login-as-customer-log": "100.4.6",
"magento/module-login-as-customer-quote": "100.4.6",
"magento/module-login-as-customer-page-cache": "100.4.7",
"magento/module-login-as-customer-sales": "100.4.7",
"magento/module-media-content": "100.4.6",
"magento/module-media-content-api": "100.4.7",
"magento/module-media-content-catalog": "100.4.6",
"magento/module-media-content-cms": "100.4.6",
"magento/module-media-gallery": "100.4.7",
"magento/module-media-gallery-api": "101.0.7",
"magento/module-media-gallery-ui": "100.4.7",
"magento/module-media-gallery-ui-api": "100.4.6",
"magento/module-media-gallery-integration": "100.4.7",
"magento/module-media-gallery-synchronization": "100.4.7",
"magento/module-media-gallery-synchronization-api": "100.4.6",
"magento/module-media-content-synchronization": "100.4.7",
"magento/module-media-content-synchronization-api": "100.4.6",
"magento/module-media-content-synchronization-catalog": "100.4.5",
"magento/module-media-content-synchronization-cms": "100.4.5",
"magento/module-media-gallery-synchronization-metadata": "100.4.4",
"magento/module-media-gallery-metadata": "100.4.6",
"magento/module-media-gallery-metadata-api": "100.4.5",
"magento/module-media-gallery-catalog-ui": "100.4.5",
"magento/module-media-gallery-cms-ui": "100.4.5",
"magento/module-media-gallery-catalog-integration": "100.4.5",
"magento/module-media-gallery-catalog": "100.4.5",
"magento/module-media-gallery-renditions": "100.4.6",
"magento/module-media-gallery-renditions-api": "100.4.5",
"magento/module-media-storage": "100.4.7",
"magento/module-message-queue": "100.4.8",
"magento/module-msrp": "100.4.7",
"magento/module-msrp-configurable-product": "100.4.5",
"magento/module-msrp-grouped-product": "100.4.5",
"magento/module-multishipping": "100.4.8",
"magento/module-mysql-mq": "100.4.6",
"magento/module-new-relic-reporting": "100.4.6",
"magento/module-newsletter": "100.4.8",
"magento/module-newsletter-graph-ql": "100.4.5",
"magento/module-offline-payments": "100.4.6",
"magento/module-offline-shipping": "100.4.7",
"magento/module-order-cancellation": "100.4.1",
"magento/module-order-cancellation-graph-ql": "100.4.1",
"magento/module-order-cancellation-ui": "100.4.1",
"magento/module-page-cache": "100.4.8",
"magento/module-payment": "100.4.8",
"magento/module-payment-graph-ql": "100.4.3",
"magento/module-paypal": "101.0.8",
"magento/module-paypal-captcha": "100.4.5",
"magento/module-paypal-graph-ql": "100.4.6",
"magento/module-persistent": "100.4.8",
"magento/module-product-alert": "100.4.7",
"magento/module-product-video": "100.4.8",
"magento/module-quote": "101.2.8",
"magento/module-quote-analytics": "100.4.7",
"magento/module-quote-bundle-options": "100.4.4",
"magento/module-quote-configurable-options": "100.4.4",
"magento/module-quote-downloadable-links": "100.4.4",
"magento/module-quote-graph-ql": "100.4.8",
"magento/module-related-product-graph-ql": "100.4.5",
"magento/module-release-notification": "100.4.6",
"magento/module-reports": "100.4.8",
"magento/module-require-js": "100.4.4",
"magento/module-review": "100.4.8",
"magento/module-review-graph-ql": "100.4.4",
"magento/module-review-analytics": "100.4.5",
"magento/module-robots": "101.1.4",
"magento/module-rss": "100.4.6",
"magento/module-rule": "100.4.7",
"magento/module-sales": "103.0.8",
"magento/module-sales-analytics": "100.4.5",
"magento/module-sales-graph-ql": "100.4.8",
"magento/module-sales-inventory": "100.4.5",
"magento/module-sales-rule": "101.2.8",
"magento/module-sales-rule-graph-ql": "100.4.1",
"magento/module-sales-sequence": "100.4.5",
"magento/module-sample-data": "100.4.6",
"magento/module-search": "101.1.8",
"magento/module-security": "100.4.8",
"magento/module-send-friend": "100.4.6",
"magento/module-send-friend-graph-ql": "100.4.4",
"magento/module-shipping": "100.4.8",
"magento/module-sitemap": "100.4.7",
"magento/module-store": "101.1.8",
"magento/module-store-graph-ql": "100.4.6",
"magento/module-swagger": "100.4.7",
"magento/module-swagger-webapi": "100.4.4",
"magento/module-swagger-webapi-async": "100.4.4",
"magento/module-swatches": "100.4.8",
"magento/module-swatches-layered-navigation": "100.4.4",
"magento/module-tax": "100.4.8",
"magento/module-tax-import-export": "100.4.7",
"magento/module-theme": "101.1.8",
"magento/module-theme-graph-ql": "100.4.5",
"magento/module-translation": "100.4.8",
"magento/module-ui": "101.2.8",
"magento/module-ups": "100.4.8",
"magento/module-url-rewrite": "102.0.7",
"magento/module-user": "101.2.8",
"magento/module-usps": "100.4.7",
"magento/module-variable": "100.4.6",
"magento/module-vault": "101.2.8",
"magento/module-vault-graph-ql": "100.4.4",
"magento/module-version": "100.4.5",
"magento/module-webapi": "100.4.7",
"magento/module-webapi-async": "100.4.6",
"magento/module-webapi-security": "100.4.5",
"magento/module-weee": "100.4.8",
"magento/module-widget": "101.2.8",
"magento/module-wishlist": "101.2.8",
"magento/module-wishlist-graph-ql": "100.4.8",
"magento/module-wishlist-analytics": "100.4.6",
"magento/theme-adminhtml-backend": "100.4.8",
"magento/theme-frontend-blank": "100.4.8",
"magento/theme-frontend-luma": "100.4.8",
"magento/language-de_de": "100.4.0",
"magento/language-en_us": "100.4.0",
"magento/language-es_es": "100.4.0",
"magento/language-fr_fr": "100.4.0",
"magento/language-nl_nl": "100.4.0",
"magento/language-pt_br": "100.4.0",
"magento/language-zh_hans_cn": "100.4.0",
"magento/framework": "103.0.8",
"magento/framework-amqp": "100.4.6",
"magento/framework-bulk": "101.0.4",
"magento/framework-message-queue": "100.4.8",
"trentrichardson/jquery-timepicker-addon": "1.4.3",
"components/jquery": "1.11.0",
"components/jqueryui": "1.10.4",
"twbs/bootstrap": "3.1.0",
"magento/module-csp": "100.4.7",
"magento/module-aws-s3": "100.4.6",
"magento/module-remote-storage": "100.4.6",
"magento/module-jwt-framework-adapter": "100.4.4",
"magento/module-jwt-user-token": "100.4.3"
},
2.4 Update source code by command line
composer update
Step 3. Upgrade source code missing from composer
3.1 Update folder: lib
You must download source code Magento 2.4.8 at download
Upload the folder lib from Magento 2.4.8 and override the folder lib of your Magento 2.4.7.
3.2 Update folder: app/code/Magento
Upload the folder app/code/Magento from Magento 2.4.8 and override the folder app/code/Magento of your Magento 2.4.7.
Then remove folder app/code/Magento/Elasticsearch7 by command line:
rm -rf app/code/Magento/Elasticsearch7
3.3 Update folder: setup
Upload the folder setup from Magento 2.4.8 and override the folder setup of your Magento 2.4.7.
3.4 Update folder: app/etc
Upload the folder app/etc from Magento 2.4.8 and override the folder app/etc of your Magento 2.4.7.
3.5 Update file autoload.php and bootstrap.php
Upload files app/autoload.php and app/bootstrap.php from Magento 2.4.8 and override files in the folder app of your Magento 2.4.7.
Step 4. Configure search engine and run upgrade, deploy, reindex, clean and flush cache by command lines
4.1 upgrade elasticsearch from 7 to 8 and configure search engine
Upgrade elasticsearch from 7 to 8.
The configure search engine:
php bin/magento config:set catalog/search/engine elasticsearch8
php bin/magento config:set catalog/search/elasticsearch8_server_hostname "localhost"
php bin/magento config:set catalog/search/elasticsearch8_server_port 9200
Note: You must install elasticsearch before go to the next command line.
4.2 Run the command bellow to upgrade, deploy, reindex, clean and flush cache
rm -rf var/*
rm -rf pub/static/*
rm -rf generated/*
php bin/magento setup:upgrade && php bin/magento setup:static-content:deploy -f && php -dmemory_limit=4G bin/magento indexer:reindex && php bin/magento cache:clean && php bin/magento cache:flush
Step 5. Check version and turn off maintenance mode by command lines:
Check version of Magento by command line:
php bin/magento --version

Turn off maintenance mode and review website.
php bin/magento maintenance:disable
Now, you finish backup Magento How to upgrade Magento from 2.4.7 to 2.4.8
You need to review all your websie, it can be some bug with the new version with core Magento, theme or your third party extensions. If you need a Magento developer to fix bug or support, you can contact us at Magepow.
If you don’t have time for it or it’s still hard for you. You can buy our upgrade service.
Leave a Reply