Manual:Moving a wiki/de

Diese Seite erklärt, wie man ein Wiki auf einen anderen Server verschiebt. Dies ist oft nötig, wenn auf einen anderen Webserver oder eine andere Domain (oder beides) umgezogen werden muss.

Der gefahrloseste Weg dafür besteht darin, bei beiden Wikis die selbe MediaWiki-Version zu verwenden. Es ist jedoch möglich, eine neuere MediaWiki-Version auf dem neuen Server zu installieren und direkt auf dem neuen Server ein Upgrade durchzuführen. Tatsächlich kann dies die einzige Option sein, wenn man beispielsweise sein Wiki auf eine neue Version upgraden will, die höhere Voraussetzungen hat (bspw. PHP Version), als auf dem alten Server verfügbar sind.

Die Einzelschritte sind grundsätzlich auf anderen Seiten beschrieben:


 * 1) Backup des Wikis erstellen.
 * 2) Die Backups vom alten auf den neuen Server übertragen.
 * 3) Die Backups auf dem neuen Server einspielen.

Den neuen Server upgraden
Wenn man auf eine neuere MediaWiki-Version auf dem neuen Server upgradet, sollte man die Upgrade-Prozedur befolgen, statt das alte MediaWiki-Verzeichnis und Erweiterungsverzeichnis auf den neuen Server zu kopieren. You'll download a new MediaWiki version on the new server and fresh versions of the extensions you use, matching the new MediaWiki version. Remember to run the update script.

Anmerkungen

 * If the URL has changed (for example, a new domain), be sure to update all references to it in LocalSettings.php. If using VisualEditor, you'll need to update Parsoid configuration too.
 * Links on cached pages may still point to the old domain. You may need to bump $wgCacheEpoch to discard cached pages prior to that time.
 * Check that the  directory has the correct permissions set if using uploads; it must be writable by the web server.
 * Make sure any extension directories have the correct permissions as well (e.g., if linux: )
 * When manually transferring a wiki from a windows platform to a Linux platform the best method is to:
 * 1) Manually install MediaWiki on the Linux platform from a tar file as outlined here: Manual Install of Wiki (i.e., try not to use install from an automated package)
 * 2) Replace the newly installed MediaWiki folder (e.g., /var/www/mediawiki...) on your Linux machine with the MediaWiki base folder from your windows machine
 * 3) Update your Linux machine's MySQL Database (e.g. wikidb) with the wiki database from your windows machine (i.e., use the backup and restore features of mysql as outlined above)
 * After importing a wiki database, even if the database can work, some minor problems may arise:
 * 1) You might need to repair Searchindex: In phpMyAdmin, enter "REPAIR TABLE wikidb.searchindex; " for rebuilding the search index. wikidb is your database's name.
 * 2) The collation of some rows may be changed. Cross-check it with the original database.

Testen
At this point, try to use the wiki on the new server. Log in as a sysop and a regular user and check that viewing, creating and editing pages and uploading files still works. Fix any problems reported either by PHP or MediaWiki itself.

You can do the entire process to test if the move will work without problems, before actually putting the old wiki in read-only mode. Once you know your wiki in the new server works as expected, you can put your old wiki in read-only mode and perform the move again.

häufige Probleme
The column md_deps in the module_deps table contains absolute file paths, which are used to locate the images and LESS files that CSS depends on. These paths break when the wiki is, e.g., moved to another folder or another server. After your move, you might see PHP warnings that certain files could not be accessed. In current versions of MediaWiki, this can be solved by running update.php, thus clearing caches.
 * Inaccessible files after the changing the domain :

In versions older than MediaWiki 1.25 (where T37472 is not implemented), update.php does not delete the contents of the module_deps table. For these versions, the workaround is to manually fix wrong entries in the module_deps table:

This can be used to update wrong path segments and to fix the error.

A similar issue can happen when MediaWiki tries to read resource loader messages. In this case the solution is to truncate the according tables:

Siehe auch

 * - if you don't have a successful backup
 * - change the installation directory of your wiki
 * - A set of tools to transfer content from one wiki to another if you don't have shell access to the old wiki.
 * - change the installation directory of your wiki
 * - A set of tools to transfer content from one wiki to another if you don't have shell access to the old wiki.
 * - A set of tools to transfer content from one wiki to another if you don't have shell access to the old wiki.

Externe Links

 * Detailed instructions on 'Migrating to a new server'
 * Specific page to move easily a wiki (in french)