I have documented steps as I was upgrading it :
tar -xvzf ~pritha1/mediawiki-1.35.3.tar.gz
mv mediawiki-1.35.3/ wiki
cp -ip wiki_WORKING/LocalSettings.php wiki
cp -prv ../wiki_WORKING/images .
php update.php
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/wiki/maintenance/update.php on line 131
php --version
PHP 5.4.16 (cli) (built: Apr 1 2020 04:07:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
After upgrading
[root@psapql427 yum.repos.d]# php --version
PHP 7.4.23 (cli) (built: Aug 24 2021 16:33:30) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
[root@psapql427 maintenance]# php update.php
Error: Missing one or more required components of PHP.
You are missing a required extension to PHP that MediaWiki needs.
Please install:
* mbstring <https://www.php.net/mbstring>
yum install php74-php-mbstring.x86_64
php update.php
echo $?
255
I really appreciate for helping me with it.
Thanks,