If you already have a website hosting with a different provider, and you want to migrate your site to Google Cloud Platform, you will need to create a website on Google Cloud Platform first. Please see below to create a website on Google Cloud Platform:
- How to Create a Project on GCP
- How to Change Project Name on GCP
- How to Deploy WordPress on GCP
- How to Change phpMyAdmin Password
- How to Change WordPress Admin Password
- How to Enable Cloud DNS API on GCP
- How to Create Cloud DNS Zone on GCP
- How to Reserve Static IP Address on GCP
- How to Fix WordPress Permalink Issue on GCP
- How to Set Up Domain Name with GCP
- How to Set Up FTP with FileZilla on GCP
- How to Change Machine Type on GCP
- How to Delete a Project on GCP
After you create a website on Google Cloud Platform, please go back to your current website and back up it. There are many different softwares and methods to backup your website. We will use the All-in-One WP migration plugin in this example.
If your website is less than 512 MB, the plugin is for free, however, there will be a charge of $69 if your site is over 512 MB, which is one time charge on any number of websites that you own.
Part I: Install All-in-One WP Migration Plugin
Step 1: Login your existing website and click "Plugins" from the menu on the left, then select "Add New";
Step 2: Type "All-in-One" in the "Keyword" box, and click "Install now" to install the plug-in;
Step 3: Click the "Activate" button to activate the plugin;
Part II: Backup/Export Website File
Step 4: Click "All-in-One WP Migration", and click "Backups" or "Export";
Step 5: Click the "Create Backup" button;
Step 6: Click "Download" to download your website file.
Part III: Import Website Files to GCP
After downloading the website files on your computer, login the website you created on Google Cloud Platform, and repeat step 1 to step 3 above to install and activate the "All-in-One WP Migration" plugin;
Step 7: Click "All-in-One WP Migration", and click "Import";
Step 8: Click the "Import From" button and navigate to the file you downloaded in step 4 to step 6;
Step 9: Click "Proceed", which is to overwrite the website on Google Cloud Platform;
Step 10: Set up the permalinks and click "Finish".
Please note that you will use the admin user name and password of the existing website after the migration.
Step 11: You may need to refresh the permalinks after migration. Click the "Permalinks" under "Settings" from the menu on the left. On the permalinks page, check and save one permalink type different from the default, then click the permalink you want and save again.