Making a English Wikipedia server: Difference between revisions
m →Install Mediawiki: Added ParserFunctions to extensions list |
m →Finish configuring LocalSettings.php: Removed unneeded lines |
||
| (One intermediate revision by the same user not shown) | |||
| 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>"; | ||
* 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( 'MobileFrontend' );</code>: | * Add under <code>wfLoadExtension( 'MobileFrontend' );</code>: | ||
$wgMFDefaultSkinClass = 'SkinMinerva'; | $wgMFDefaultSkinClass = 'SkinMinerva'; | ||
* Add under <code>wfLoadExtension( 'Scribunto' );</code> | * Add under <code>wfLoadExtension( 'ParserFunctions' );</code>: | ||
$wgPFEnableStringFunctions = true; | |||
* Add under <code>wfLoadExtension( 'Scribunto' );</code>: | |||
$wgScribuntoDefaultEngine = 'luastandalone'; | $wgScribuntoDefaultEngine = 'luastandalone'; | ||
* 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) | ||