User:WikiMaster/Wiki - Installation & Upgrading
Jump to navigation
Jump to search
MediaWiki: Upgrading
- BACKUP FIRST! Manual:Backing up a wiki
- Automated MySQL Backup Tool - AutoMySQLBackup
- MySQL dump tool - mysqldump — A Database Backup Program
- MySQL Export: How to backup your MySQL database?
- You can easily create a dump file(export/backup) of a database using the phpMyAdmin tool.
- Consider making the Wiki read-only before creating the backup - see Manual:$wgReadOnly. This makes sure all parts of your backup are consistent (some of your installed extensions may write data nonetheless).
- From the command line, or an SSH shell or similar, change to the maintenance directory and execute the update script:
Use this command instead:$ php update.php
/usr/local/php53/bin/php update.php
- Full report here: User:WikiMaster/The_Dingo_Ate_My_Wiki
Interface
Using Git
- Git downloads
You can download code directly via Git from the MediaWiki source code repository (browse code) or download a snapshot. To get the latest version of an extension, for instance, just clone the git master.
For example, if you have shell access to your server, you may do this to download the Validator extension:
cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Validator.git
- Wikimedia Projects on Git
- Projects - Big list of MediaWiki extensions and other Wikimedia project available for download from Git repository.
- Help Resources
- An example of downloading Validator using Git.
- Git Check DreamHost VPS
- Instructions here: Pre-installed git
Last login: Sat Jun 16 07:47:42 2012 from 97.115.118.134 [ps11244]$ which git /usr/bin/git [ps11244]$ git --version git version 1.7.1.1 [ps11244]$
How to Patch MediaWiki to latest version
- Example -- Patch update MediaWiki 1.22.0 to MediaWiki 1.22.3:
- Download Patch Into Main Directory:
wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.3.patch.gz
- Uncompress File:
gunzip mediawiki-1.22.3.patch.gz
- Move Patch To Wiki Directory:
mv mediawiki-1.22.3.patch /path/to/your/wiki
- Do a Dry Run First:
patch -p1 --dry-run < mediawiki-1.22.3.patch
- Apply Patch:
patch -i mediawiki-1.22.3.patch -p 1
- Remove Patch File:
rm -rf mediawiki-1.22.3.patch
- Source: Manual:Upgrading#Using_patch
- Unix / Linux / Bash
Performance Tuning
- Manual:Performance tuning
- Memcached (DreamHost Wiki)
- memcached + WordPress + DreamHost Shared Hosting
- Long-winded tutorial showing how to set up memcached on DH VPS and use it for domains hosted on DH shared servers.