Renaming the Wiki

From MemoryLeak
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:

  1. SSH into the NAS (port 2048):
    ssh -p 2048 your_user@wiki.mille.cam
    
  1. Navigate to the MediaWiki config directory (adjust path if needed):
    cd /volume1/docker/mediawiki-app/  # or wherever LocalSettings.php lives
    
  1. Find the current sitename line:
    grep wgSitename LocalSettings.php
    
    Expected output:
    $wgSitename = "Brain Dump";
    
  1. Edit it using the /tmp redirect workaround (direct sed -i fails 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
    
  1. Verify the change:
    grep wgSitename LocalSettings.php
    
  1. No container restart needed — LocalSettings.php is read on every request, so refreshing the wiki should show "Memory Leak" immediately in the header/title.

Notes

  • If $wgLogo or a custom skin config references "Brain Dump" as alt text anywhere, update that too.
  • The browser tab <title> pulls from $wgSitename automatically, so it updates as well.