Making a English Wikipedia server: Difference between revisions
Spell checked |
m →Finish configuring LocalSettings.php: Removed unneeded lines |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 114: | Line 114: | ||
*** JsonConfig | *** JsonConfig | ||
*** MobileFrontend | *** MobileFrontend | ||
*** ParserFunctions | |||
** Check 'Enable Instant Commons' | ** Check 'Enable Instant Commons' | ||
** Change under Logo (icon) and Sidebar logo (optional) <code>change-your-logo.svg</code> to the filename of the image you dropped in the resource folder earlier. You will see a preview of it underneath | ** Change under Logo (icon) and Sidebar logo (optional) <code>change-your-logo.svg</code> to the filename of the image you dropped in the resource folder earlier. You will see a preview of it underneath | ||
| Line 128: | 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 164: | 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) | ||
#$wgShowExceptionDetails = true; | #$wgShowExceptionDetails = true; | ||
* Add the following block at the end - this allows larger modules to be uploaded without errors: | |||
$wgMaxArticleSize = 4096; # Size in kb | |||
$wgAPIMaxResultSize = 4096000; # Size in b | |||
Go back to the website and check that it is still functional. If you are greeted by a blank page, the most common reason is a missing <code>;</code> at the end of a line - all lines must end with a <code>;</code>. | Go back to the website and check that it is still functional. If you are greeted by a blank page, the most common reason is a missing <code>;</code> at the end of a line - all lines must end with a <code>;</code>. | ||
== Importing the dump == | == Importing the dump == | ||