Google Cloud Platform

How to launch a VM Instance using Snapshots in Google Cloud


Before you start installing WordPress on VM instance on Google Cloud. You must log in into the machine. You can launch a VM Instance on Google Cloud using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.


Step 1: Using below command we will install HTTPD server on the machine.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-1.PNG

Step 2: Now we will start HTTPD service using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-2.PNG

Step 3: now go to console and check you public IP of the browser.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-3.PNG

Step 4: you can test that you have successfully installed apache server by typing public IP of instance in your browser

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-4.PNG

Step 5: Using below command we will install PHP server on the machine.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-5.PNG

Step 6:Now we will restart HTTPD service using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-6.PNG

Step 7: Now we will go to var/www/html directory using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-7.PNG

Step 8: Now we will create test.php file under html directory using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-8.PNG

Step 9: Write these lines in test.php.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-9.PNG

Step 10: Now go to your browser and type your public IP/test.php. You will see the below page if php is successfully installed.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-10.PNG

Step 11: Using below command we will install Mariadb server on the machine.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-11.PNG

Step 12: Now we will start mariadb service using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-12.PNG

Step 13: Now we will begin MySQL secure installation using below command. Just follow the instructions on the screen.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-13.PNG

Step 14: Now we will login into Mariadb server using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-14.PNG

Step 15: Now we will create a database wordpress using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-15.PNG

Step 16: Using below command we will create a user and grant all privileges on database wordpress.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-16.PNG

Step 17: Flush privileges using below command and type exit.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-17.PNG How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-17.1.PNG

Step 18: Now we will move to home directory and download WordPress using wget command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-18.PNG

Step 19: Now we will unzip the downloaded WordPress folder using tar command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-19.PNG

Step 20: Now we will go to wordpress folder using cd command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-20.PNG

Step 21: Executes the following command to create wp-config.php file.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-21.PNG

Step 22: Now we will edit wp-config.php file using below command.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-22.PNG

Step 23: Enter the foll0wing details show in figure.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-23.PNG

Step 24: Use below command to copy wordpress folder to html folder.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-24.PNG

Step 25: Go to your browser type your ip adress/wp-admin in you browser.Enter the required information and click on install WordPress.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-25.PNG

Step 26: After successfully installation click on log in.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-26.PNG

Step 27: log in using id and password.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-27.PNG

Step 28: After successfully log in you will see the following screen.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-28.PNG

Step 39: Type your public IP of your machine in the browser.

How-to-install-WordPress-on-VM-instance-in-Google-Cloud-step-29.PNG

Must Read Article

How to launch a VM instances in Google Cloud

How to launch a VM instances in Google Cloud

In this tutorial we are going to launch a Compute Egine instance.

How to install wordpress in VM instances in Google Cloud

How to install WordPress on VM instance in Google Cloud

Before you start installing WordPress on VM instance on Google Cloud. You must log in into the machine. You can launch a VM Instance on Google Cloud using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How to create a VM instance in Azure

How to create a VM instance in Azure

In this Tutorial we are going to launch a Virtual Machine in azure.

How to install WordPress on VM instance in Azure

How to install WordPress on VM instance in Azure

Before you start installing WordPress on VM instance on Azure. You must log in into the machine. You can launch a VM Instance in Azure using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How To Launch EC2 Machine

How To Launch EC2 Machine

In this article we are going to learn how to launch a EC2 instance. For this you need to have AWS account.

How to install WordPress on ec2 machine

How to install WordPress on ec2 machine

Before you start installing WordPress on ec2 machine. You must log in into the machine.