Renaming the Wiki
Jump to navigation
Jump to search
Renaming the Wiki from "Brain Dump" to "Memory Leak"
Question: My Wiki is currently named "Brain Dump". Can you help me change the name to "Memory Leak"?
Answer:
Easy fix — that's the $wgSitename variable in LocalSettings.php.
Since the MediaWiki container has LocalSettings.php bind-mounted (and the sed -i issue on bind mounts has come up before), here's the safe way to do it via SSH:
- SSH into the NAS (port 2048):
ssh -p 2048 your_user@wiki.mille.cam
- Navigate to the MediaWiki config directory (adjust path if needed):
cd /volume1/docker/mediawiki-app/ # or wherever LocalSettings.php lives
- Find the current sitename line:
grep wgSitename LocalSettings.php
- Expected output:
$wgSitename = "Brain Dump";
- Edit it using the
/tmpredirect workaround (directsed -ifails on the bind mount):sed 's/\$wgSitename = "Brain Dump";/\$wgSitename = "Memory Leak";/' LocalSettings.php > /tmp/LocalSettings.php.new cat /tmp/LocalSettings.php.new > LocalSettings.php
- Verify the change:
grep wgSitename LocalSettings.php
- No container restart needed —
LocalSettings.phpis read on every request, so refreshing the wiki should show "Memory Leak" immediately in the header/title.
Notes
- If
$wgLogoor a custom skin config references "Brain Dump" as alt text anywhere, update that too. - The browser tab
<title>pulls from$wgSitenameautomatically, so it updates as well.