Auto Migrate and install website script

amir

Well-known member
Trusted Seller
Aug 6, 2019
420
356
63
33
🌏
neofollower.com
Hello. i Have a copy of a website, Full copy of public_html folder and exported database file and all of these stored in a upload center.
now i want install this website to 10 or more different cpanel shared hostings and run lots of websites , so i have to upload the public_html content and database sql file, and this takes lots of time,
i use this code to direct download to shared hostings:
<?php
copy("http://babiato.tech/latest.zip", "file.zip");
?>
but i,m looking for something more complete, that copy and extact files to the cpanel and create and import the sql file in database , Or even more than that, change automaticlly website link in wp-option in database and update permanent link , so i just have to config website content for customers, do you know any code or script ?
 

nobs

Well-known member
Babiato Lover
Jun 26, 2020
290
1,170
93
Travelling...
Hi there
If you are talking about cloning a WP install, use DUPLICATOR plugin, it is free.
Make a copy of website 1.
You will get installer.php + copywhateverfile.zip
Upload both to public HTML of website 2...
Then open your browser to website2.whatever/installer.php...
Cloning everything will take you less than one minute.

Ps: while cloning you can create a new username/email/password for the new wp copy.
Do not forget to update the permalinks, delete the olduser of website1 from website2, and so on.


I used duplicator for years and never failed me.
Cheers.
NoBs
 
Last edited:
  • Like
Reactions: amir

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu