I’m looking for offers to create a plugin which takes a Wordpress site on domain A and creates a copy on domain B, with its own database of course.
It shouldn’t be too hard with wp-cli. Adjust wp-config.php, then wp search-replace domain and paths, flush cache at the end.
The way I see it from the user side: in Virtualmin under Administration Options there’s a new option called Clone Wordpress. User clicks it, types new domain name, clicks Clone button, that’s it. The plugin handles the rest - creates a new Virtual Server, copies files and DB, runs wp-cli. If the website is not Wordpress, there’s some kind of warning message instead.
It’s been around forever. It’s called the ‘All in One Migration Tool’. You install the plugin on the existing site, export the site, install the plugin on the new site, upload that site and it restores it.
I don’t have Pro (yet - just gathering data to migrate a client from cPanel now) so I didn’t know it’s a thing. Do you have to know Perl? I know several programming languages but am not very interested in learning Perl.
lol and this way in just 25 steps you can clone a website. I know how to clone it manually, I want to automate the process.
Okay I was too harsh, sorry. This is for an user who needs everything to be simpler than what you’re suggesting. You need to create the site, log into old one, log into new one, install the plugin on both sides etc. - lots of steps and he’s capable of getting every of them wrong.
It does. Installatron for cPanel does it easier, that’s what they’re using now. You click “clone” and select target website, that’s it. There’s Installatron for Virtualmin too but I will be very happy to drop this software when we’re moving.
And you were told exactly how to do that. Even a layman should be able to do it in no more than 5 minutes. Tops. It’s extraordinarily easy.
The only other way you’re going to do it is to do backup and restores out of Cpanel into Virtualmin and that is MUCH more involved. It actually takes a bit of brains to do it without messing it up.
The Wordpress migrate tool is, to this day, the easiest full proof way to move a Wordpress site from one place to the other using varying control panels. There is nothing else on earth right now that will do it any easier. There probably never will be.
You can also use the free Duplicator plugin for Wordpress.
I have used it a lot.
Install on the original WP, create the backup file and installer,.
Create the new domain on Vmin, copy the 2 files - either with FTP or the admin.domain file manager, then run the installer by accessing the new website.
is no one reading this correctly ? @servertech want’s a virtualmin plugin and not some wordpress method of duplication … I guess this is why this thread is in the jobs section & not any other section, it’s good suggesting the wordpress way of doing things but that does not integrate into virtualmin system which is what is required
for whatever reasons the op wants a plugin … I would have coded it, if I had learnt perl, and the languages I know do not integrate into the virtualmin eco system. The problem here is @servertech does not trust the ability of his users to do this but in the long run it may be worth him doing the dups for his clients as at least it will be done correctly I guess