How To Transfer a wordpress website to google cloud from a local server ?

There are multiple method avilable ,

1.  Manual wordpress migration methos from a localhost

2. WordPress migration using Plugin 

The manual migration is better, though the process is little complicated than plugins but you will have exact copy of yours WordPress. Plugins normally skip unnecessary file such as cache files, but if the plugins not properly updated it may skip important files.

This article explains how to migrate the files manually to google cloud platform for hosting Purpose.

For remotely manage your files for websites running on Google Cloud Platform  we are using Filezilla. 

At first we have to lunch the wordpress in compute engine on google cloud platform. The remaining steps should do as per the below instructions.

1. Download PuTTY and FileZilla

2. Generate SSH Keys

3. Copy and save the keys

4. Paste Public Key in Google Cloud

5. Upload Private Key in FileZilla

6. Establish Connection to Google Cloud

7. Navigate to your root directory

1.Download Putty and FileZilla,

Putty is the SSH ( SSH keys are a matching set of cryptographic keys which can be used for authentication) client and the key generator,  this application to generate a private/public key pair and  it will establish a secure connection between  Google Cloud Platform instance and FileZilla. 

FileZilla is the FTP Client that we will used for  security  and  manage our Google Cloud website’s files straight from  the desktop.

2.Generate SSH keys.

In the wake of downloading the Putty , we need to create the keys from Putty, After applying the produce key catch, a couple of keys will be avilable and we need to move the cursor to the prograssing  bar for producing the SSH key records.

3.Copy and Save the key

After your SSH Key files produced, duplicate the public key file from the top box, and download the private key file  by clicking the Save private key catch.

4.Paste the Public key in the google cloud

1.From the hamburger menu in the upper left-hand corner of your Google Cloud Platform dashboard.

2.We have to navigate >

Compute Engine > Metadata > SSH Keys. Click the Edit button

3. Scroll to the bottom of the Edit page, click the Add item button, and paste the Public Key text that you copied in previous method  into the box. Finally, click Save.

5.Upload  private key in filezilla

  1. Open FileZilla, and navigate to Edit > Settings
  1. From the left-hand column of the settings menu,

          Navigate to Connection > FTP > SFTP.

 Click the Add key file..button, and select the private key file that you downloaded in Step 3.(Copy and save the key)

6.Establish the connection to google cloud

1.In order to establish a connection between Google Cloud and Filezilla, you will need both the IP Address to your instance, and the username for your SSH Key.

2.From your Google Cloud dashboard, navigate to Compute Engine > VM instances, and copy the IP Address of the instance you wish to connect to. Also, copy your SSH username, which is displayed in both the key comment section of the putty dashboard and at the end of your public key text.

3.Back in the FileZilla dashboard, type sftp:// followed by the IP Address of the instance you wish to connect to. In the username field, paste your PuTTY username.

Lastly, click the Quickconnect button.

7. Navigate to your root directory.

Note :

If we are running the Bitnami version of google cloud  then the root directory located at

/opt/bitnami/apps/wordpress/htdocs


If we are running the click-to-diploy version of wordpress in google cloud then your root directory is located at

/var/www/html

1.After you’ve connected successfully, click the very top folder in the Remote site section at the right-hand side of the screen.

2.Once this directory is open, navigate to your root directory by pasting the directory path in the remote host field. 

Leave a comment

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