Skip to content

Instantly share code, notes, and snippets.

@renoirb
Created April 3, 2014 19:42
Installing WebPlatform Docs MediaWiki installation from Scratch

Installing WebPlatform Docs MediaWiki, from scratch

This is installation notes that was taken to install WebPlatform Docs and follow maintainer versions from their remote origins.

Reference

Steps

Very rough steps, follow with caution.

Checkout MediaWiki from Gerrit

git clone https://gerrit.wikimedia.org/r/mediawiki/core latest
cd latest
git checkout -t origin/wmf/1.23wmf1
git submodule init
git submotuld update

... this takes a while.

Missing extensions

While comparing with WebPlatform Docs at the moment, I could not find the following. Copied from current version

cp -r ../upgrade-package-prepare/extensions/BreadcrumbMenus extensions/
cp -r ../upgrade-package-prepare/extensions/EditSectionIcon extensions/
cp -r ../upgrade-package-prepare/extensions/TopicTitle extensions/

The following were extensions that were not added as submodules in our deployment, adding them:

git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/AdminLinks extensions/AdminLinks
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/Comments extensions/Comments
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/EmailCapture extensions/EmailCapture
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/LookupUser extensions/LookupUser
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/Narayam extensions/Narayam
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/NewSignupPage extensions/NewSignupPage
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText extensions/ReplaceText
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticInternalObjects extensions/SemanticInternalObjects
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/SocialProfile extensions/SocialProfile
git submodule add https://gerrit.wikimedia.org/r/mediawiki/extensions/StringFunctionsEscaped extensions/StringFunctionsEscaped

Edit Settings, replace SubPageList for SubPageList3

# Ensure those are commented
#require_once( "$IP/extensions/WebPlatformSearchAutocomplete/WebPlatformSearchAutocomplete.php" );
#require_once( "$IP/extensions/WebPlatformAuth/WebPlatformAuth.php" );
#require_once("$IP/extensions/WebplatformSectionCommentsSMW/WebplatformSectionCommentsSMW.php");

cp -r ../upgrade-package-prepare/skins/WebPlatform.* skins/
cp -r ../upgrade-package-prepare/skins/webplatform skins/

sudo apt-get install php5-mysql

php maintenance/update.php

cp -r ../upgrade-package-prepare/extensions/ConfirmEdit/ extensions/ConfirmEditCustom
require_once( "$IP/extensions/ConfirmEditCustom/ConfirmEdit.php" );
require_once( "$IP/extensions/ConfirmEditCustom/WpdCaptcha.php");

comment CompaTables extension (not shown here)

Make sure that wikidir/LocalSettings.php has applicable config:

require_once( "$IP/../LatestSettings.php" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment