Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:mediawiki [2025/02/10 16:09] – [Install] darrontools:mediawiki [2025/02/14 05:03] (current) – [Install] darron
Line 15: Line 15:
 ==NGINX== ==NGINX==
  
-[[https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx|Site configuration]]+Adapt this [[https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx|site configuration]] 
 +for your needs and update LocalSetttings.php for URL rewriting.
  
 +<code>
 +$wgScriptPath = "/w";
 +$wgArticlePath = "/wiki/$1";
 +$wgUsePathInfo = true;
 +</code>
 ===Install=== ===Install===
  
Line 51: Line 57:
 Visit the wiki site and follow the installation procedure which will conclude with Visit the wiki site and follow the installation procedure which will conclude with
 a download of the LocalSettings.php file. a download of the LocalSettings.php file.
 +
 +NB It's recommended to choose English as the installation language.
  
 Edit the settings file and upload to the server and installation is complete. Edit the settings file and upload to the server and installation is complete.
Line 61: Line 69:
 ==Language== ==Language==
  
-During installation the site language may be set to "en-gb" (or something else) and it's +If you didn't choose English as the installation language you can change it 
-preferable to use the Mediawiki default language of "en".+after installation.
  
-When searching for an item with an un-associated language an entry using the Mediawiki default of "en" may be returned but not anything else such as "en-gb".+For example, during installation the site language may have been set to "en-gb" (or something else) and it's 
 +preferable to use the Mediawiki default language of "en".
  
 Add the following to LocalSettings.php Add the following to LocalSettings.php
Line 74: Line 83:
 <code> <code>
 echo 'MediaWiki\MediaWikiServices::getInstance()->getMessageCache()->clear()' | php maintenance/run.php eval echo 'MediaWiki\MediaWikiServices::getInstance()->getMessageCache()->clear()' | php maintenance/run.php eval
-php maintenance/run.php userOptions.php language --old en-GB --new en+php maintenance/run.php userOptions.php language --old en-gb --new en
 </code> </code>
  
-To disable language selection in user preferences, add the following+To disable language selection (from "en"in user preferences, add the following
 to LocalSettings.php to LocalSettings.php
 <code> <code>
Line 83: Line 92:
 </code> </code>
 ===Resources=== ===Resources===
 +
 +[[https://www.mediawiki.org/wiki/Manual:%24wgLanguageCode|wgLanguageCode]]
  
 [[https://www.mediawiki.org/wiki/Extension:DeleteBatch|DeleteBatch]] [[https://www.mediawiki.org/wiki/Extension:DeleteBatch|DeleteBatch]]