-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99fea08
commit 0016968
Showing
16 changed files
with
158 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* @type article | ||
* @title Migration complète d'une installation WP | ||
* @icon ../medias/icon.webp | ||
* @abstract Migration une installation complète de WP | ||
* @index 11 | ||
* @ref web/wordpress | ||
*/ | ||
?> | ||
<ol> | ||
<li>Depuis l'ordinateur initial: Sauvegardez <em>le dossier contenant les fichiers de votre installation WordPress</em> sur votre outil de sauvegarde habituelle (cloud, clé USB, disque dur externe). Le contenu du dossier en question, devrait ressembler à ceci: <img src="images/installation-wp.jpg" alt="liste de fichiers de bases d'une installation WordPress" style="width: 200px;"></li> | ||
<li>Depuis l'ordinateur initial: Exportez votre base de données via phpMyAdmin. Vous pouvez enregister le fichier d'export .sql à côté de votre dossier de projet que vous avez précédement enregistré.<img src="images/export-phpmyadmin.webp" alt="export bd"> </li> | ||
<li>Sur le nouvel ordinateur: Installez MAMP (si ce n'est pas déjà fait).</li> | ||
<li>Dans htdocs, dupliquez <em>le dossier contenant les fichiers de votre installation WordPress</em>.</li> | ||
<li>Depuis votre dossier de projet, supprimez votre fichier <em>wp-config.php</em></li> | ||
<li>Sur le nouvel ordinateur: allez dans phpMyAdmin et créez une nouvelle base de données toute fraîche, idéalement avec le même nom que votre base de données initiale. </li> | ||
<li>Toujours dans phpMyAdmin, positionné sur votre nouvelle base de donnée fraîchement créée, importez votre fichier d'export (le fichier avec extention .sql).</li> | ||
|
||
<li>Rendez vous sur localhost/LeCheminDAccesPourSeRendreAuDossierDeProjet</li> | ||
<li>Suivez les instructions (nom de BD, root, root, localhost, wp-)</li> | ||
|
||
</ol> | ||
|
||
|
||
|
||
<alert>Si l'avant dernière étape retourne une erreur c'est que votre configuration MAMP n'est pas pareille à celle de l'école et dont le URL est différent. Ainsi, à la place de <span class='inline-code'>localhost:81/abc</span> il est souvent possible que votre url n'affiche que <span class='inline-code'>localhost/abc</span>. Pour remédier à ce problème, vous devez ouvrir phpMyAdmin, ouvrir la table <em>wp-options</em> et éditer <em>siteurl</em> avec le url de votre installation actuelle. Vous devez aussi faire la même chose pour <em>home</em> (dans la même table).</alert> | ||
|
||
|
||
<warning>Autre problème possible: votre navigateur vous retourne toujours vers <span class='inline-code'>localhost:81/abc</span> même si vous tapper <span class='inline-code'>localhost/abc</span>. Si tel est le cas, vous devez vider la cache de votre navigateur. Pour développer votre débrouillardise, je vous laisse trouver comme le faire, vous avez les outils pour trouver.</warning> |
Binary file added
BIN
+146 KB
582-518MO/wordpress/migration-site-bd-wp/images/export-phpmyadmin.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.