LocalSettings.php Tweaks

From MemoryLeak
Jump to navigation Jump to search

A running log of manual edits made to LocalSettings.php, why they were made, and how to reverse them if needed.

Skin: MinervaNeue → minerva

Why: $wgDefaultSkin expects the internal skin key, not its display name. The mobile skin is labeled "MinervaNeue" in the UI, but its actual key is minerva. Setting the display name instead of the key causes MediaWiki to silently fall back to the default skin.

Command:

sed -i.bak 's/\$wgDefaultSkin = "MinervaNeue";/\$wgDefaultSkin = "minerva";/' LocalSettings.php

Notes:

  • Creates a backup at LocalSettings.php.bak before editing in place.
  • Run from the directory containing LocalSettings.php.
  • To roll back: mv LocalSettings.php.bak LocalSettings.php

Template for Future Entries

Copy this block below the last entry and fill it in for each new tweak.

=== [Short description of the change] ===

'''Why:''' [What problem this solves or what behavior it changes, and any gotchas worth remembering.]

'''Command:'''
<syntaxhighlight lang="bash">
[the command here]
</syntaxhighlight>

'''Notes:'''
* [Backup/rollback info]
* [Any prerequisites, e.g. run from X directory]
* [Anything else future-you would want to know]

----

Last updated: Kmilleca (talk) 12:43, 3 August 2026 (UTC)