-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This extension (and utility) helps do a MediaWiki Setup that includes NameSpace based protections for Pages and Attachments/Files.
Following these instructions, you can set up your own templated MediaWiki platform that includes these features and many other niceties.
For information about NameSpace Protection, see [MediaWiki](http://www.mediawiki.org/wiki/Extension:NSFileRepo)
http://rogerdudler.github.io/git-guide/ http://www.mediawiki.org/wiki/Git
This assumes you want to get a specific version of the mediawiki.
First, download the core objects:
git clone -n https://gerrit.wikimedia.org/r/p/mediawiki/core.git <Your Directory> # or if you want to get a development version: git clone -n ssh://[your github id]@gerrit.wikimedia.org:29418/mediawiki/core.git <YourDirectory>Now checkout the mediawiki:
cd <YourDirectory> git checkout -b REL1_24 origin/REL1_24 git clone -b master https://github.com/[your github id]/WikiConfig.git "extensions/WikiConfig" git submodule add -f https://github.com/[your github id]/WikiConfig.git "extensions/WikiConfig" chmod +x "extensions/WikiConfig/gitallextensions.sh" "extensions/WikiConfig/gitallextensions.sh" -b REL1_24
Note: Use "HEAD" for the current development version.
pushd "extensions/OpenID" git clone git://github.com/openid/php-openid.git cp -Rp php-openid/Auth/ Auth rm -rf php-openid popd
rm -rf extensions/Validator vim .gitmodules # # [submodule "extensions/Validator"] # path = extensions/Validator # url = https://github.com/wikimedia/mediawiki-extensions-Validator.git git clone https://github.com/wikimedia/mediawiki-extensions-Validator.git extensions/Validator pushd extensions/Validator curl -sS https://getcomposer.org/installer | php php composer.phar install popdIf you're using recaptcha, you need to go out and get from [
pushd extensions cp WikiConfig/CleanLocal.php [$wgScriptPath]LocalSettings.php popd
pushd extensions cp WikiConfig/CleanLocal.php [$wgScriptPath]LocalSettings.php popdThen change the local settings in the [$wgScriptPath]
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); require_once( "$IP/extensions".$wgScriptPath."LocalSettings.php" );
You may want to change the logo and the favicon in extensions/[$wgScriptPath]LocalSettings.php
"extensions\WikiConfig\gitallextensions" -b REL1_21
For an individual extension, add to the .conf file in WikiConfig or:
git submodule add [-b REL<1_21>] --force -- "ssh://[your github id]@gerrit.wikimedia.org:29418/mediawiki/extensions/NSFileRepo.git" "extensions/NSFileRepo"
To remove a submodule, you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/submodule_name
- Commit
- Delete the now untracked submodule files
- rm -rf path_to_submodule
git pull --recurse-submodules git fetch
sudo apt-get install php5-json sudo apt-get install php5-MySQL sudo apt-get install php5-intl sudo apt-get install php-apc sudo service apache2 restart
Visual Editor requires the installation of Parsoid - which is a server and varies by platform.
Followed the instructions here.
sudo apt-get update sudo apt-get install -y python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs nodejs --version # should now print v0.10.x
You're going to have compile your own git, so, check here for the latest
I recommend you use
git clone git://git.kernel.org/pub/scm/git/git.git cd git make prefix=/usr/local all sudo make prefix=/usr/local install