Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 7fabc4bb6cc997a51086766e8e70a98e > files > 1

mediawiki-1.16.5-3.mga2.src.rpm

This mediawiki package supports multiple instances, sometimes also
called Wiki Farms or Wiki Families, but you can use it for a single
instance just as well.

This works by running mediawiki-create <path>, where <path> is the
new desired location of your wiki(s) like

mediawiki-create /srv/my.host/wiki

Note that the parent directories must exist.

You also need to create an Apache config entry (if you use Apache for
serving mediawiki) like

DocumentRoot /srv/my.host/wiki
Alias /skins /usr/share/mediawiki/skins

(this example is for short URLs, e.g. ones w/o a "/wiki/" in the URL)


When upgrading from a mediawiki with php code and config in the same 
directory (we use /var/www/mediawiki as example), you can run:

rm -f /var/www/mediawiki/{index.php,api.php,opensearch_desc.php}
mediawiki-create /var/www/mediawiki
rm -rf /var/www/mediawiki/config/
mediawiki-updateall

Make sure the first line of PHP code in your LocalSettings.php is:
  $IP = '/usr/share/mediawiki';