-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- About WikiConfig
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://[email protected]:29418/mediawiki/core.git <YourDirectory>
Now checkout the mediawiki:
cd <YourDirectory> git checkout -b REL1_22 origin/REL1_22 git clone -b master https://github.com/jdpond/WikiConfig.git "extensions/WikiConfig" git submodule add -f https://github.com/jdpond/WikiConfig.git "extensions/WikiConfig" chmod +x "extensions/WikiConfig/gitallextensions.sh" "extensions/WikiConfig/gitallextensions.sh" -b REL1_22
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
cp WikiConfig/CleanLocal.php [$wgScriptPath]LocalSettings.php popd
Then change the local settings in the [$wgScriptPath]
require_once( "$IP/extensions".$wgScriptPath."LocalSettings.php" );
You may want to change the logo and the favicon in extensions/[$wgScriptPath]LocalSettings.php
For an individual extension, add to the .conf file in WikiConfig or:
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 fetch
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 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
sudo git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid cd parsoid/ sudo npm install cd api sudo cp localsettings.js.example localsettings.js sudo vim localsettings.js # Modify # parsoidConfig.setInterwiki( 'localhost', 'http://localhost/mw/api.php' ); #
You're going to have compile your own git, so, check here for the latest
I recommend you use
cd git make prefix=/usr/local all sudo make prefix=/usr/local install