Renaming the Wiki: Difference between revisions
Jump to navigation
Jump to search
Created page with "== 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 <code>$wgSitename</code> variable in <code>LocalSettings.php</code>. Since the MediaWiki container has <code>LocalSettings.php</code> bind-mounted (and the <code>sed -i</code> issue on bind mounts has come up before), here's the safe way to do it via SSH: # '''SSH i..." |
mNo edit summary |
||
| Line 44: | Line 44: | ||
* If <code>$wgLogo</code> or a custom skin config references "Brain Dump" as alt text anywhere, update that too. | * If <code>$wgLogo</code> or a custom skin config references "Brain Dump" as alt text anywhere, update that too. | ||
* The browser tab <code><title></code> pulls from <code>$wgSitename</code> automatically, so it updates as well. | * The browser tab <code><title></code> pulls from <code>$wgSitename</code> automatically, so it updates as well. | ||
[[Category:MediaWiki Administration]] | |||
[[Category:How-To]] | |||
Latest revision as of 20:42, 14 August 2026
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.