How did I upgrade Magento on cabinetsbay.com from 2.4.4 to 2.4.7-p2?

Step 1.

Step 2.

2.1.

Magento 2.4.7-p2 requires PHP ~8.1.0||~8.2.0||~8.3.0:

2.2.

Magento 2.4.4 requires PHP ~7.4.0||~8.1.0:

2.3.

Therefore, PHP ~8.1.0 is the only PHP version supported by both Magento 2.4.4 and 2.4.7-p2.

2.4.

So, I upgraded PHP to ~8.1.0.
How did I upgrade PHP on cabinetsbay.com from 7.4 to 8.1?

Step 3.

How did I upgrade the root composer.json file of cabinetsbay.com from Magento 2.4.4 to 2.4.7-p2?

Step 4.

Backup the code.

Step 5.

rm -rf composer.lock
composer clear-cache
composer update

Step 6.

How did I port the Magento 2.4.4 core file modifications of cabinetsbay.com to Magento 2.4.7-p2?

Step 7.

Update readme.md:

Step 8.

bin/magento setup:upgrade

Step 9.

bin/magento cache:enable

2024-09-08--21-36-12

Step 10.

bin/magento setup:di:compile

Step 11.

bin/magento cache:clean
rm -rf pub/static/* var/cache var/page_cache var/view_preprocessed
bin/magento setup:static-content:deploy \
	--area adminhtml \
	--theme Magento/backend \
	-f en_US
bin/magento setup:static-content:deploy \
	--area frontend \
	--theme Cabinetsbay/cabinetsbay_default \
	-f en_US
bin/magento cache:clean

Step 12.

bin/magento indexer:reindex
bin/magento cron:run --bootstrap=standaloneProcessStarted=1
bin/magento cache:clean

Step 13.

How did I make cabinetsbay.com compatible with Magento 2.4.7-p2?

Step 14.

Step 15.

Step 16.