Making a English Wikipedia server: Difference between revisions

Saved progress so far
Saved progress so far
Line 15: Line 15:
* MySQL/MariaDB
* MySQL/MariaDB
* A dump of your Wikipedia of choice
* A dump of your Wikipedia of choice
You will also need the following for optimal performance:
* ICU
* ImageMagick
* git (for revision control - not strictly necessary)


=== Before you start ===
=== Before you start ===
Line 72: Line 78:
=== Install Mediawiki ===
=== Install Mediawiki ===


* Navigate to where your instance is installed: for example, https://enwiki.freddythechick.net/. You will be greeted by the Mediawiki installer.
* Navigate to where your instance is installed: for example, https://enwiki.freddythechick.net/. You will be greeted by the Mediawiki installer. Click the 'set up the wiki' link
 
* Choose your language then click 'Continue'
* Check the Environmental checks and fix anything flagged up here. If all is OK, you will see 'The environment has been checked. You can install MediaWiki.' in green with a tick. At this point, click 'Continue'
* Enter the database configuration:
** Database type: MariaDB, MySQL, or compatible
** Database host: localhost
** Database name (no hyphens): enwiki
** Database table prefix (no hyphens): <leave blank>
** Database username: enwiki
** Database password: <use password generated/configured earlier>
* Click 'Continue'
* On Database settings, leave the 'Use the same account as for installation' box checked and click 'Continue'
* On Name, enter the following settings:
** Name of wiki:<whatever you want your wiki to be called>
** Project namespace: Same as the wiki name
* Enter details of an account username, password and e-mail address so that you can administer the wiki later.
* Make sure 'Ask me more questions' is checked and click 'Continue'
* On Options, select the following:
** User rights profile: Account creation required (we will be further locking this down later)
** Copyright and license: Creative Commons Attribution-ShareAlike (this specific license '''MUST''' be selected if using Wikipedia's content)
** Uncheck 'Enable outbound email'
** Select Vector as the default skin with the radio button
** Check the following extensions to enable them:
*** MassMessage
*** Cite
*** Math
*** Poem
*** Scribunto
*** TemplateStyles
*** JsonConfig
*** MobileFrontend
** 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
** Ensure PHP object caching (APC, APCu or WinCache) is selected
* Click 'Continue'
* Click 'Continue' to finish the install
* Ensure the installation has completed sucessfully then click 'Continue'
* A copy of the LocalSettings.php file will be downloaded automatically. This needs to be moved to the root folder of the wiki which will then make it work.
* Click 'Enter your wiki'. You will be greeted with the default MediaWiki Main page if all is well.
== Importing the dump ==
== Importing the dump ==