Requires cPanel access to both sites

  1. Copy down all files in the /wp-content/ folder and all the folders under it from the site that is being cloned.
  2. Go into Control Panel for hosting account of the site being cloned, and EXPORT the entirety of the SQL table that hosts the dev site
  3. Create empty WordPress site on new hosting company.
  4. Upload all the files from dev /wp-content/ folder into new site
  5. From hosting cPanel, IMPORT the SQL file downloaded in step 2 into the correct table (found in wp-config.php file on new site)

Details for step 2

  1. Look for phpMyAdmin, Open it, and in the left column, you’ll see any number of databases.
  2. You’ll know which database to use by looking in the wp-config.php file in your WordPress install
    • Look for the line like:
      define(‘DB_NAME’, ‘bierwerx’);
      and
      $table_prefix = ‘wp_’;
      where the name of the database would be wp_bierwerx
  3. Click on the correct database and the right pane will change showing you all the tables in that db. Click on Export tab.
  4. Choose Custom
  5. Check “Add DROP TABLE etc”
  6. Add 2 or 3 zeroes to the Maximal Length of created Query then hit Go
  7. ftp up the wp-content folder and all of it’s contents FROM the site you are cloning to the new site that WILL BE the new clone.
  8. Go to the NEW site’s CPanel and open up the File Manager
  9. (Go to the NEW sites’s root folder and view the wp-config.php file to get the name of the new database to import the content into)
  10. Go into myPhpAdmin and click on the correct database in the left pane
  11. In the right pane, click on the import tab.
  12. Choose File and Go. (No need to change anything as your script should be good as is.)
  13. In phpMyAdmin, in the left pane, click on wp_options table in the newly imported database.
  14. In the right pane, look for the record with siterul and edit it to show the new URL. Do the same for home record (which is usually on the second page of results)

Leave a Reply

Your email address will not be published. Required fields are marked *