User:Rehman/MediaWiki

Over the next few months, I plan on doing some demos on how organisations can use MediaWiki. This page is where I will be storing my own notes (hence it will look messy/incomplete).

The demos will be done on https://wiki.rehman.website/. All uploaded content are dummy content, and the main domain and subdomains were purchased with the intention of being disposable.

Extensions included within MW 1.34.2
The below extensions come with the main MediaWiki installer (v1.34.2). Install all of them (as some of them requires others):


 * Extension:CategoryTree
 * Extension:Cite
 * Extension:CiteThisPage
 * Extension:CodeEditor
 * Extension:ConfirmEdit
 * Extension:Gadgets
 * Extension:ImageMap
 * Extension:InputBox
 * Extension:InterwikiSorting (for multiple wikis only)


 * Extension:LocalisationUpdate
 * Extension:MultimediaViewer
 * Extension:Nuke
 * Extension:OATHAuth (update.php required)
 * Extension:PageImages
 * Extension:ParserFunctions
 * Extension:PdfHandler
 * Extension:Poem


 * Extension:Renameuser
 * Extension:Replace Text
 * Extension:Scribunto (see additional steps)
 * Extension:SpamBlacklist
 * Extension:SyntaxHighlight
 * Extension:TextExtracts
 * Extension:TitleBlacklist
 * Extension:WikiEditor

Suggested extensions

 * Extension:AbuseFilter (update.php required)
 * Extension:Admin Links (probably not needed)
 * Extension:AdvancedSearch
 * Extension:AntiSpoof (not tested)
 * Extension:Capiunto (not tested)
 * Extension:CirrusSearch
 * Extension:Elastica
 * Extension:CheckUser
 * Extension:CLDR
 * Extension:CodeMirror
 * Extension:Collection (not tested)
 * Extension:ContactPage (not tested)


 * Extension:DynamicSidebar (not tested)
 * Extension:Echo (update.php required)
 * Extension:GeoData
 * Extension:Graph
 * Extension:JsonConfig
 * Extension:Kartographer
 * Extension:Labeled Section Transclusion
 * Extension:LoginNotify (not tested)
 * Extension:MassMessage
 * Extension:PageTriage (probably not needed)
 * Extension:PageViewInfo
 * Extension:Popups (not tested)


 * Extension:Quiz (not tested)
 * Extension:RelatedArticles (not tested)
 * Extension:RevisionSlider
 * Extension:SandboxLink
 * Extension:SecurePoll (update.php required) (not tested)
 * Extension:StructuredDiscussions (update.php required) (not tested)
 * Extension:Thanks
 * Extension:UploadWizard (configuration recommended)
 * Extension:UserMerge
 * Extension:Variables (better not)
 * Extension:VisualEditor (not tested)

Restricting access within MediaWiki
See Manual:Preventing access.
 * Disable reading by anonymous users:
 * Disable anonymous editing:
 * Prevent new user registrations except by sysops:

Restriction direct access to uploaded files
See Manual:Image authorization Block malicious files: Manual:Security
 * 1) Add   in the   file located in the   directory
 * 2) Change $wgUploadPath in LocalSettings.php to

Restricting bots crawling on the site

 * Manual:robots.txt

Other settings or notes

 * Never install in  directory, use   or anything else
 * Hide index.php from URL: Manual:Short URL
 * Update favicon
 * Update logo
 * Cpanel: Setup email and/or forwarders for the $wgPasswordSender
 * Cpanel: Disable index viewing
 * Cpanel: Enable hotlink protection

Other probably-useful settings
 $wgLogo = "{$wgUploadPath}/6/62/mylogo.png";
 * 1) Update site logo

 $wgEnotifUseRealName = true;
 * 1) Use real name instead of username in email "from" field

 $wgFixDoubleRedirects = true;
 * 1) Fix double redirects after a page move. Edits by Redirect_fixer account name.

 $wgFileExtensions = array_merge(   $wgFileExtensions, [        'pdf', 'ppt', 'pptx', 'doc', 'docx', 'xls', 'xlsx', 'oft'    ] );
 * 1) Add more file types to the default array

 (see Manual:$wgFooterIcons)
 * 1) Amend both poweredby and copyright logos

MediaWiki interface pages

 * See Special:AllMessages for all system messages (MediaWiki.org examples)
 * MediaWiki:Loginprompt - To add a note on the login page
 * MediaWiki:Deletereason-dropdown and MediaWiki:Filedelete-reason-dropdown
 * MediaWiki:Edittools
 * MediaWiki:Licenses
 * MediaWiki:Mainpage and MediaWiki:Mainpage-nstab and MediaWiki:Sitesubtitle
 * MediaWiki:Sidebar
 * MediaWiki:Upload-default-description

To do

 * How to block web access to MediaWiki's files and folders?
 * Manual:User rights
 * Topic:Vh5puzkud2x3k0vl - removing index.php from URL (see also)
 * Logo next to "Powered by MediaWiki"
 * How to setup pages like https://en.wikipedia.org/w/docs