Manual:Moving a wiki/fr

Cette page explique comment déplacer un wiki vers un autre serveur. Ceci est souvent nécessaire lors du passage à un autre serveur Web ou domaine (ou les deux).

Le moyen le plus sûr de le faire est d'utiliser la même version de MediaWiki sur les deux wikis. Cependant, il est possible d'installer une version plus récente de MediaWiki sur le nouveau serveur et d'effectuer une upgrade directement sur le nouveau serveur. En fait, cela peut être votre seule option si vous souhaitez mettre à niveau votre wiki vers une nouvelle version qui a des exigences plus élevées que celles disponibles sur votre ancien serveur (comme la version php).

Les étapes sont essentiellement expliquées dans d'autres pages :


 * 1) Faites une sauvegarde de votre wiki.
 * 2) Transférez les sauvegardes de l'ancien serveur vers le nouveau.
 * 3) Restaurez la sauvegarde sur le nouveau serveur.

Mise à jour du nouveau serveur
If you are upgrading to a newer MediaWiki version on the new server, instead of copying the old MediaWiki directory and extensions to the new server, you should follow the upgrading procedure. 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.

Test
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.

Problèmes fréquents
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:

Voir aussi

 * - 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.

Liens externes

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