Here are the steps to move your WordPress blog website setup off from Amazon Web Services (AWS) Windows Server 2012 instance to GoDaddy Managed WordPress hosting.
Amazon Web Services (AWS) Windows Server 2012 instance:
- Backup your WordPress IIS Web Folder
- Backup your WordPress MySQL DB using
- Export to Dump Project Folder (recommended if you have large size tables in your DB, generates .SQL file for each table, using this .SQL file you can recreate the same table on other DBs)
- Export to Self-Contained File (recommended for small size tables usually for small websites, so that all tables data will be combined into a single .SQL file)
Update .SQL files exported from AWS with the new GoDaddy’s MySQL DataBase and table names
- Update your exported .SQL files to reflect the new DataBase and table names
- By default when you export your WordPress MySQL tables into .SQL file it will contain your DB and table names.
- This results in error if you try to import these files into different MySQL or GoDaddy server
- You need to update the exported .SQL files with the new GoDaddy’s MySQL database and table names
- Find the SQL Database name and WordPress table prefix from GoDaddy’s setup
- Make a note of your phpMyAdmin Url and login Details from GoDaddy WordPress hosting setting page
- Login to phpMyAdmin URl with the credentials
- You’ll find the database name in the left pane of phpMyAdmin
- First you need to find the new Database prefix used on your GoDaddy WordPress installation which you can find in wp-config.php file on GoDaddy SFTP folder.
- In wp-config.php file, you can find the prefix mentioned in “$table_prefix” variable
- You can apply the change either to just Self-Contained File or each .SQL file of exported Dump Project Folder
- Given that you’ll have the DB already created, you can DELETE the first line of exported .SQL files which reads DB creation command like below
- CREATE DATABASE IF NOT EXISTS `wordpress0073` /*!40100 DEFAULT CHARACTER SET utf8 */;
- It’s usually be the second line in your exported .SQL file
- it looks as: USE `wordpress0073`;
- Replace the DB name with your WordPress MySQL DB name
- Replace it across all the .SQL files
- in each of the .SQL file, search and replace the OLD wp_prefix_<tablename> with NEW wp_prefix_<tablename> globally.
GoDaddy Managed WordPress hosting:
- Start your new managed WordPress site on a temporary domain/website
- Choose “Use the temporary domain <tempodomainname>.myftpupload.com”
- Set your temporary site WordPress Adin login details
- New WordPress username
- Email address
- New WordPress password
- Make a note of your SSH and SFTP hostname and login Details
- Using WinSCP, SFTP to the GoDaddy’s SFTP host
- Copy your WordPress Folder\wp-content folder to your /home/<your-godaddy-username>/html/wp-content folder
- to ensure successful copy, verify the files and folder size and count once copy is complete
- do not delete/remove /wp-content/mu-plugins folder
- Make a note of your phpMyAdmin Url and login Details
- Take a backup of the default MySQl tables, just in case if you need to restore any thing back.
- Delete all the existing tables from your MySQL instance database
- Use “Import” option to load all your WordPress MySQL tables
- Click on Choose File and select
- modified “Self-Contained File” Or
- each of the modified SQL files of “Export to Dump Project Folder”
- To find the key with old wp_prefix use below queries
- <wp_*>_capabilities: Select * from wp_prefix_usermeta WHERE meta_key LIKE ‘wp_%’
- <wp_*>_user_roles: Select * from wp_prefix_options WHERE option_name LIKE ‘wp_%’
- In wp_prefix_usermeta table, rename
- <wp_*>_capabilities to <wp_newprefix>_capabilities
- <wp_*>_user_roles to <wp_newprefix>_user_roles
- Logon to GoDaddy’s WordPress Hosting GateWay to see your managed wordpress site
- Click on Settings > Add Domain > provide your domain name, if your domain is also from GoDaddy you’ll see it automatically populated for you.
- In case your domain name as well is hosted on GoDaddy, you just need to set your domain name server settings to use Standard option for setup type.
- Standard option for GoDaddy’s name servers, automatically connects your domain to GoDaddy’s DNS ZONE FILE.
- You’ll notice a preconfigured “A (Host)” record existing and pointing to your WordPress DNS IP-Address.
- if you have updated the DNS for your website, you’ll need to wait for couple of hours or days for your domain IP address changes to propagate across the geographical locations.