User:Huji
Appearance
Find me here please.
Useful links for me:
- Setting up an Ubuntu VM for MW development
I had to do this so many times (setting up an Ubuntu VM using VirtualBox, then installing and configuring MediaWiki on it to resemble the WMF environment, just to start working on a patch on MW or an extension) that I felt like I might as well just document the commands somewhere so I can copy-paste them the next time!
- Install Oh-my-zsh!
sudo apt-get install zshwget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zshchsh -s `which zsh`- Log out and log back in
- Install LAMP, and
gitstuffsudo apt-get install apache2 mysql-server php-mysql php-mbstring php-xml curl git libapache2-mod-php php-mcrypt python-pip ssh composersudo service apache2 restart
- Configure git
git config --global user.email "you@example.com"git config --global user.name "Your Name"
- Install git-review
sudo pip install git-review
- Create SSH private and public keys
cd; ssh-keygen -t rsa -C "you@example.com"- Store the public key on https://gerrit.wikimedia.org/r/#/settings/ssh-keys
- Clone mediawiki into
/var/www/htmlsudo chmod 777 /var/www/htmlcd /var/www/htmlgit clone ssh://huji@gerrit.wikimedia.org:29418/mediawiki/core.git .composer update
- Clone the Vector skin:
cd skinsgit clone ssh://huji@gerrit.wikimedia.org:29418/mediawiki/skins/Vector.git .
- Add
wfLoadSkin( 'Vector' );to the end of LocalSettings.php file - Create the CentralAuth database
cd extensionsgit clone ssh://huji@gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth.gitcd CentralAuthmysql -u root -pthen ...CREATE DATABASE centralauth;
USE centralauth;
SOURCE central-auth.sql;
quit
- Install MediaWiki; follow this: https://gist.github.com/Huji/a41e3d59ac4c43f245083024dbf36203