LocalSettings.php Tweaks

From MemoryLeak
Revision as of 19:56, 4 August 2026 by Kmilleca (talk | contribs)
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

Installed SyntaxHighlight extension

Why: Enables colored/highlighted code blocks (<syntaxhighlight>) on wiki pages instead of plain <pre> text.

Commands:

# Extension was already bundled in the container image at:
# /var/www/html/extensions/SyntaxHighlight_GeSHi
# (Pygments 2.19.2 bundled at extensions/SyntaxHighlight_GeSHi/pygments)

echo 'wfLoadExtension( "SyntaxHighlight_GeSHi" );' >> /var/www/html/LocalSettings.php

Notes:

  • No pip install needed — Pygments ships bundled with this extension version.
  • Verified working by testing a bash block on this page.

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)