User:Rogerhc/upgrade 1.31.1 LTS to 1.35.1 LTS (2021)

Upgrade of production MW 1.31.1 instance exp.com to MW 1.35.1.

First a temp.com dev wiki
Setup temp.com dev wiki.

I like to start with a fresh default install of the new MW version, then add the files (images, LocalSettings.php) extensions and configs exp.com requires, then dump the exp.com database in.

PHP version
PHP version of exp.com MW1.31.1 is PHP 7.2. Because MW1.35.1 requires PHP 7.3 or better and MW1.31.1 is compatible with PHP 7.3 but not PHP 7.4, set exp.com webhost to PHP 7.3 which both versions are compatible with:

cPanel >> Software >> Select PHP Version (set to PHP 7.3).

Test the temp.com dev wiki

Then the production exp.com wiki
Can the exp.com wiki to a full backup. Then replace exp.com with the new dev wiki.

Freeze the exp.com wiki
Set no-edit at bottom of LocalSettings.php.

cp
cp the files to exp.com.MW1.31.1-20210101

dump
dump the database to exp.MW1.31.1-20210101.sql

Update database
maintenance/update.php or something

Unfreeze exp.com
Comment out no-edit lock at bottom of LocalSettings.php.

Test
If all fails, revert to backup of old version (and reset PHP version in cpanel if needed).