I have several Wikis hosted on the same Mediawiki installation. I use the Giant Switch Statement (as described here: Manual:Wiki family) to achieve this. However, this seems to make me unable to run the update.php script.
In PuTTY I go to my maintainance folder as required and then I try running the php script from there using "php update.php". Then it gives me the following error:
PHP Notice: Undefined index: SERVER_NAME in /var/www/html/w/LocalSettings.php on line 12
This wiki is not available. Check configuration.root@soulslike:/var/www/html/w/maintenance#
How should I go about updating my tables? I need to update them to install this extention (Extension:TitleKey) and will possibly need to use it in the future to update my Mediawiki installation. Also, I don't know why the Wiki would suggest the Giant Switch Statement at all if this causes errors in the Mediawiki updating process...