Austrian Economics Wiki:Upgrading: Difference between revisions
Appearance
*[http://wiki.mises.org/mediawiki/favicon.png favicon.png] |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Mises Wiki generally upgrades its MediaWiki installation whenever the | Mises Wiki generally upgrades its MediaWiki installation whenever a new version comes out. | ||
*images folder | |||
*extensions folder | ==Procedure== | ||
*LocalSettings.php | *Make a backup of the database and file system by following instructions at [[MisesWiki:Backups]]. | ||
*The custom Mises Wiki skin (Vector.php) and any dependencies (e.g. the [http://wiki.mises.org/mediawiki/skins/misesskin/images/shield.png Mises Wiki shield image]) | *Go to https://www.mediawiki.org/wiki/Download and get the URL for the newest download. (Or, if you're [[mw:download from Git|downloading from Git]], use <code>git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git</code>.) | ||
*[http://wiki.mises.org/mediawiki/favicon.png favicon.png] | *[[wikipedia:wget|wget]] that URL. | ||
In addition, [[wikipedia:chgrp|chgrp]] and/or [[wikipedia:chown|chown]] should be run recursively on the images folder to make those directories writeable by users in the "web" group. | *<code>[[wikipedia:tar|tar]] xvzf mediawiki-1.xx.x.tar.gz -C /home/web/public_html/wiki</code> | ||
*The following must be recursively copied into the new directory (<code>/home/web/public_html/wiki/mediawiki-1.xx.x</code>) from the old directory: | |||
:*images folder | |||
:*extensions folder | |||
:*LocalSettings.php | |||
:*The custom Mises Wiki skin (Vector.php, Vector.printable.php) and any dependencies (e.g. the [http://wiki.mises.org/mediawiki/skins/misesskin/images/shield.png Mises Wiki shield image]); for the dependencies, you may as well just use <code>[[wikipedia:cp|cp]] -r /home/web/public_html/wiki/mediawiki/skins/misesskin /home/web/public_html/wiki/mediawiki-1.xx.x/skins</code> | |||
:*[http://wiki.mises.org/mediawiki/favicon.png favicon.png] | |||
*In addition, [[wikipedia:chgrp|chgrp]] and/or [[wikipedia:chown|chown]] should be run recursively on the images folder to make those directories writeable by users in the "web" group. I guess that would be <code>chgrp -R web /home/web/public_html/wiki/mediawiki/images/* and chown -R web /home/web/public_html/wiki/mediawiki/images/*</code> | |||
*Also [[mw:Download_from_git#Download_all_extensions|upgrade the extensions]]: | |||
:*<code>[[wikipedia:cd|cd]] /home/web/public_html/wiki/mediawiki/extensions</code> | |||
:*<code>git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git</code> | |||
*<code>php [[mw:Manual:Update.php|update.php]]</code> | |||
==See also== | ==See also== | ||
*[[mw:Manual:Upgrading]] | *[[mw:Manual:Upgrading]] | ||
Latest revision as of 23:38, 6 December 2013
Mises Wiki generally upgrades its MediaWiki installation whenever a new version comes out.
Procedure
- Make a backup of the database and file system by following instructions at MisesWiki:Backups.
- Go to https://www.mediawiki.org/wiki/Download and get the URL for the newest download. (Or, if you're downloading from Git, use
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git.) - wget that URL.
tar xvzf mediawiki-1.xx.x.tar.gz -C /home/web/public_html/wiki- The following must be recursively copied into the new directory (
/home/web/public_html/wiki/mediawiki-1.xx.x) from the old directory:
- images folder
- extensions folder
- LocalSettings.php
- The custom Mises Wiki skin (Vector.php, Vector.printable.php) and any dependencies (e.g. the Mises Wiki shield image); for the dependencies, you may as well just use
cp -r /home/web/public_html/wiki/mediawiki/skins/misesskin /home/web/public_html/wiki/mediawiki-1.xx.x/skins - favicon.png
- In addition, chgrp and/or chown should be run recursively on the images folder to make those directories writeable by users in the "web" group. I guess that would be
chgrp -R web /home/web/public_html/wiki/mediawiki/images/* and chown -R web /home/web/public_html/wiki/mediawiki/images/* - Also upgrade the extensions:
cd /home/web/public_html/wiki/mediawiki/extensionsgit clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git
php update.php