372 Wiki 372 Wiki

  • Home
  • Forums
  • Categories
    • Billing
    • Bookkeeping
    • Copyright & Legal
    • Clients
    • Designer Guides
    • Developer Guides
    • Getting Started
    • Troubleshooting
    • Workplace
Home / Developer Guide / WordPress Site Transfer From a ‘wp-content’ Folder Backup to cPanel

WordPress Site Transfer From a ‘wp-content’ Folder Backup to cPanel

18 views 2 min , 23 sec read 0

Things to note

When you change the input fields in Setting  > General  they will not change  the urls in embedded content (ie. post_meta). This means that some internal links will redirect to the live site when clicked, only after the domain has fully propogated will the embedded urls work properly

If the location of the site has an SSL certificate installed then the new location will also need an SSL otherwise links will not work as expected.

Domain Name Propagation

To ensure the domain name servers have been pointed, and have propagated correctly:

  1. Rename index.php to _index.php
  2. Create an index.html file and add ‘Site maintenance in progress’ inside
  3. When the site has propagated simple change index.html to _index.html and _index.php to index.php
  1. Login to cPanel
    1.  If you do not have permissions to do this ask your supervisor
  2. On the dashboard of cPanel add a new addon domain with the same domain as the live site
  3. Using the ‘MySQL Databases’ button create a new database and write down the details
    1. if required create a user or assign a current user to the database with full permissions
  4. Using Installatron Application Installer install WordPress
    1. Applications Browser > Content Management > WordPress
      1. Create a new instance
        • Remove the optional directory parameter to ensure the installer installs WP to the correct root folder, not another level deeper
        • Disallowing automatic updates is recommended to improve the end user experience and breaks in the website
        • Ensure the email used here is the support email to avoid spamming the client
        • Make sure to dig into advanced settings and use an existing database
  5. After Installatron finishes its setup process for WordPress, access PHPMyAdmin and click on the database we created in step 3
    1. Using the provided SQL dump file provided for the transfer import it to the database (ensuring first that you are on the correct DB)
    2. Reload the page and check the prefixes before the table name
    3. There are new tables drop all tables un-needed tables ie
      1. if the import created tables like ‘new_wp_users’ and ‘wp_users’ also exists the you can drop all tables with just the ‘wp_’ prefix keeping the ‘new_wp_’ prefixed tables
  6. If the prefixes do not read like ‘wp_’ you need to change the wp-config.php to match the prefix provided in the DB
  7. Go back to PHPMyAdmin and then inside of the database select the settings table and update the site url with a temporary url
    1. This url will be constructed like so
      [sharedIP]~/[cPanelusername]/[addon domain name]
  8. Login to WordPress admin using the url you created above followed by/wp-admin
  9. Go to Settings > General, then change both the ‘WordPress Address (URL) and Site Address (URL)’ to the url we created in step 7
  10. Change the admin email to support@372digital.com.au and save changes
  11. Reset the password so that previous developers don’t have access anymore
  12. Go to the home page and ensure the website is showing up using the default theme
  13. Upload the wpcontent folder and unzip into the wp-content folder
  14. Go to the admin panel under Appearance > Themes and select the correct theme
  15. If all is working you are ready to point the domain to our host
  16. Go to Settings > General, then change both the ‘WordPress Address (URL) and Site Address (URL)’ to the website domain.
  17. Login to domain name manager and change the domain’s DNS to point to the new server.
  18. Let the domain propagate for a few minutes
  19. Disconnect a mobile phone from the office wi-fi. Then use mobile data to visit the website in Incognito mode (Google Chrome) or Private mode (Safari).
  20. If you see the text you have entered in index.html appear, then the domain is pointing correctly to the new server.
  21. If using SSL, login again to the WordPress admin and change the ‘WordPress Address (URL) and Site Address (URL)’ to https://www.domain.name
  22. Login to cPanel and click on the ‘Redirects’ icon.
  23. In the dropdown options, make sure the following are selected ’Type: Permanent (301)’ and ‘https?://(www.)?: domain name’.
  24. Enter the url in the ‘Redirects to’ field as ‘https://www.domain.name’
  25. Under www. redirection: make sure the ‘Redirect with or without www.’ is selected.
  26. Click the Add button to finish
Developer Guide

About 372-admin

View all posts by 372-admin →

Related Articles

  • WordPress Multi-Site Deplyment
  • cPanel Redirect Old to New Site using htaccess
  • Version Control
  • JA Theme Setup Documentation

Article Categories

  • 9Billing
  • 3Bookkeeping
  • 2Cimara
  • 5Client
  • 11Copyright & Legal
  • 2Designer Guide
  • 18Developer Guide
  • 11Getting Started
  • 2Troubleshooting
  • 10Workplace

Most Viewed

  • Using my credit 112
  • What is WordPress? 64
  • Account overview 51
  • Why can’t I download the latest theme version (zip file)? 49
  • How do you customize the navigation? 49

Most Liked

  • Using my credit 5
  • Why can’t I download the latest theme version (zip file)? 3
  • What is WordPress? 2
  • Workplace Communication 1
  • Account overview 1

Article Categories

Billing Bookkeeping Cimara Client Copyright & Legal Designer Guide Developer Guide Getting Started Troubleshooting Workplace

Any questions

For all management related matters please refer to Ben Brillante

For any Cimara functional issues please refer to Rushabh Padalia.

For client based issued please refer to James Apoefis

© Copyright 372 Digital Pty Ltd. All rights reserved.