WordPress Clone an Instance: Difference between revisions
From WikiMLT
m Стадий: 6 [Фаза:Утвърждаване, Статус:Утвърден]; Категория:WordPress |
m Стадий: 3 [Фаза:Разработване, Статус:Разутвърден]; Категория:WordPress |
||
Line 27: | Line 27: | ||
{{devStage | {{devStage | ||
| Прндл = WordPress | | Прндл = WordPress | ||
| Стадий = | | Стадий = 3 | ||
| Фаза = | | Фаза = Разработване | ||
| Статус = | | Статус = Разутвърден | ||
| ИдтПт = Spas | | ИдтПт = Spas | ||
| РзбПт = | | РзбПт = {{REVISIONUSER}} | ||
| АвтПт = Spas | | АвтПт = Spas | ||
| УтвПт = | | УтвПт = Spas | ||
| ИдтДт = 17.06.2022 | | ИдтДт = 17.06.2022 | ||
| РзбДт = | | РзбДт = {{Today}} | ||
| АвтДт = 17.06.2022 | | АвтДт = 17.06.2022 | ||
| УтвДт = | | УтвДт = 17.06.2022 | ||
| ИдтРв = [[Special:Permalink/25834|25834]] | | ИдтРв = [[Special:Permalink/25834|25834]] | ||
| РзбРв = [[Special:Permalink/ | | РзбРв = {{REVISIONID}} | ||
| | | АвтРв = | ||
| РзАРв = [[Special:Permalink/25838|25838]] | |||
| УтвРв = | |||
| РзУРв = [[Special:Permalink/25840|25840]] | |||
}} | }} | ||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 07:53, 9 September 2022
An easy and robust way to Clone an WordPress Instance is to use the WordPress migration plugin Duplicator , provided by Snap Creek. There are few easy steps you need to do.
- Install the plugin at the source WordPress site.
- Go to the admin menu item "Duplicator" and pass through the three easy steps process in order to "Create new Package".
- Download the newly created
<package>.zip
and theinstaller.php
file. - Setup a new Virtual Host and new a Database for the destination site.
- Place
<package>.zip
andinstaller.php
into the DocumentRoot directory of the new Virtual Host. - Access
https://destination.example.com/installer.php
via the web browser and follow the provided steps.
Optionally, if you need to clone the site at the same server, yo do not need to download the <package>.zip
file, it is located into the directory wp-content/backups-dup-lite/
.
One you finish you must cleanup the source and the destination site directories. One way is by using the command line:
# remove 'ech' in order to do the actual changes
sudo find /var/www -type f -name '<package>.*' -exec echo rm {} \;
Further, for these who don't have the pro version, they can chance the database prefix of the new instance by the help of the plugin Brozzme DB Prefix & Tools Addons (tested on WP 5.7.2).
References:
- Duplicator For WordPress – Quick Start
- WP Staging: 3 Ways to Change the WordPress Database Table Prefix
- WordPress: Changing The Site URL via WP-CLI