We are trying to upgrade from MediaWiki 1.30 to 1.31. We downloaded mediawiki-1.31.0.tar.gz
from the MediaWiki site. The tarball was unpacked overtop of the old MediaWiki installation after backing up files. After the unpack we restored the old LocalSettings.php
.
We are at Step 6 of the MediaWiki upgrade instructions:
- Run the update script to check the database
When we run the update script from the mediawiki directory we get:
# php maintenance/update.php
Notice: Undefined index: SERVER_NAME in /var/www/html/w/includes/GlobalFunctions.php on line 1432
Notice: Undefined index: SERVER_NAME in /var/www/html/w/includes/GlobalFunctions.php on line 1432
MediaWiki 1.31.0 Updater
oojs/oojs-ui: 0.23.0 installed, 0.26.4 required.
pear/mail: not installed, 1.4.1 required.
pear/mail_mime: not installed, 1.10.2 required.
pear/mail_mime-decode: not installed, 1.5.5.2 required.
wikimedia/at-ease: not installed, 1.2.0 required.
wikimedia/html-formatter: 1.0.1 installed, 1.0.2 required.
wikimedia/ip-set: 1.1.0 installed, 1.2.0 required.
wikimedia/object-factory: not installed, 1.0.0 required.
wikimedia/php-session-serializer: 1.0.4 installed, 1.0.6 required.
wikimedia/purtle: 1.0.6 installed, 1.0.7 required.
wikimedia/relpath: 2.0.0 installed, 2.1.1 required.
wikimedia/remex-html: 1.0.1 installed, 1.0.3 required.
wikimedia/running-stat: 1.1.0 installed, 1.2.1 required.
wikimedia/utfnormal: 1.1.0 installed, 2.0.0 required.
wikimedia/wrappedstring: 2.2.0 installed, 2.3.0 required.
Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies
Followed by:
# composer update --no-dev
-bash: composer: command not found
I found one post about it on MediaWiki's help forum: update.php says composer.lock not up to date. It was not helpful.
This is a production web server and it is missing some of the dev tools. In fact, it is a CentOS 7 server with PHP 7.0 from a different repo so I am not even sure we can install the right version of composer.
(We had to use the external repo because the native PHP was 5.7 or 5.8, if I recall correctly. PHP 5.7 or 5.8 only supports MediaWiki 1.24 or so, so we had to update to get the latest MediaWiki with security fixes).
None of us are web developers or web server admins by trade. When problems crop up like a failed upgrade then we struggle if the upgrade notes don't include solutions that work for us.
I guess my first question is, is it possible to download a mediawiki-1.31.0
tarball with everything needed for the upgrade? If so, where is it?
If not, then what else can we do to finish this upgrade?