Making a English Wikipedia server: Difference between revisions

m Finish configuring LocalSettings.php: Added extra option for ParserFunctions
m Finish configuring LocalSettings.php: Removed unneeded lines
 
Line 129: Line 129:
* Add a line to enable a favicon:
* Add a line to enable a favicon:
  $wgFavicon = "$wgResourceBasePath/resources/assets/<logoimage.svg>";
  $wgFavicon = "$wgResourceBasePath/resources/assets/<logoimage.svg>";
* Change <code>$wgEnableUserEmail</code> to <code>false</code>
* Edit <code>$wgEmergencyContact</code> and <code>$wgPasswordSender</code> with your email address between the quote marks
* Edit <code>$wgEmergencyContact</code> and <code>$wgPasswordSender</code> with your email address between the quote marks
* Change <code>$wgLocaltimezone</code> from UTC to your correct PHP time zone - in our case, <code>Europe/London</code>
* Change <code>$wgLocaltimezone</code> from UTC to your correct PHP time zone - in our case, <code>Europe/London</code>
Line 165: Line 164:
         'url' => 'https://commons.wikimedia.org/w/api.php'
         'url' => 'https://commons.wikimedia.org/w/api.php'
  ];
  ];
* Add under <code>wfLoadExtension( 'Math' );</code>:
$wgDefaultUserOptions['math'] = 'mathml';
* Add under <code>wfLoadExtension( 'MobileFrontend' );</code>:
* Add under <code>wfLoadExtension( 'MobileFrontend' );</code>:
$wgMFAutodetectMobileView = true;
  $wgMFDefaultSkinClass = 'SkinMinerva';
  $wgMFDefaultSkinClass = 'SkinMinerva';
* Add under <code>wfLoadExtension( 'ParserFunctions' );</code>:
* Add under <code>wfLoadExtension( 'ParserFunctions' );</code>:
Line 174: Line 170:
* Add under <code>wfLoadExtension( 'Scribunto' );</code>:
* Add under <code>wfLoadExtension( 'Scribunto' );</code>:
  $wgScribuntoDefaultEngine = 'luastandalone';
  $wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = '60'; # Allows lua scripts to run for 60 seconds - needed during import
* Add the following block at the end (leave commented out until needed for debugging for security and comment back out once debugging finished):
* Add the following block at the end (leave commented out until needed for debugging for security and comment back out once debugging finished):
  # Show PHP exceptions (only enable on error)
  # Show PHP exceptions (only enable on error)