How to change the logo in MediaWiki website
MediaWiki is a free and open-source software platform used to create and manage wikis. It was originally developed for Wikipedia and is now widely used by various organizations for knowledge sharing and collaboration.
- SSH Login details
- Logo in .png format
Step 1: Login to the server
$ ssh username@IP
Step 2: Move the logo to the server using scp
$ sudo scp username@ip:/path/to/logo.png /path/to/document/root
Step 3: Check the document root for the domain in the web server configuration file.
$ sudo vim /etc/<webserver>/sites-available/domain.conf
Step 4: Enter the document root and move the logo.png to the resources/assets directory .
$ sudo mv logo.png resources/assets
Step 5: Open the LocalSettings.php file to change the logo of mediawiki website,
$ sudo vim LocalSettings.php
Edit the line “ $wgLogos “ to the path of the logo.png for changing the logo.
$wgLogos = [ ‘1x’ => “$wgResourceBasePath/resources/assets/logo.png” ];
Also edit the line, From
$wgEnableUploads = false;
$wgEnableUploads = true;
Save and exit the file.
Step 6: Check the website, now the logo will be changed.
If it still showing the old logo clear the cache on a browser or check it in an incognito browser.
MediaWiki is a powerful and flexible platform that allows users to create and manage wikis with ease. Its popularity and scalability make it an excellent choice for anyone looking to facilitate collaboration and knowledge sharing within their organization.