Google cloud wordpress hosting cost

Hosting your wordpress site on Google cloud compute engine by creating your own virtual machine gives you complete freedom to make any changes to root files and saves you from all the flaws of hosting wordpress on shared hosts .

A shared hosting account will cost 6-10 USD and it comes with all the problems associated with shared web hosting like resource limitations and shared ip addresses. I always recommend using cloud to host any wordpress site because of their low cost considering the advantages over shared servers.

Google cloud provides click to deploy solution to host your wordpress blog using Compute engine . The price of Google cloud services will depend on your usage but it mainly consists of server cost so you have complete freedom to choose the resources you need based on your budget .

Smallest instance offered by Google Compute engine is f1-micro with 0.06 GB memory and if you are hosting a wordpress site then you will also need a 10 GB storage disk . The monthly cost of this package will be around 4.5 USD . If you are just starting your wordpress project then it is usually recommended to start with this instance as you have the option to upgrade your machine resources later as you need them . Google cloud wordpress hosting cost will include $5.84/month for VM Instance and $0.40/month for 10 GB Standard Persistent Disk. However Google also offers a sustained usage discount so at the end of month this total package will cost you a total of $4.49/month . Which is a very low cost when compared to virtual machines offered by shared hosting companies on internet.

Instance vCPUs Ram
(GB)
10GB Storage Cost
(Per Month)
f1-micro Shared 0.60 1.70 5.79
g1-small Shared 1.75 1.70 15.50
n1-standard-1 1 3.75 1.70 27.25
n1-standard-2 2 7.5 1.70 52.80

These costs per month don’t include 30 percent sustained usage discount provided by Google Compute Engine . Comparing these costs to virtual machine and dedicated servers prices offered by major web hosting companies , there is definitely saving in Hosting wordpress on Google cloud.

Edit robots.txt file using google cloud ssh

If you are hosting your WordPress website using Google cloud hosting then your robots.txt will be set to default that disallows all search bots from crawling your site . You will need to change the robots.txt file uploaded on your server and edit it so that search engine bots are allowed to crawl your website.

First of all you should check if your robots.txt file actually needs editing or not by viewing it on “www.yoursite.com/robots.txt”  . If somewhere is says ” Disallow: / ” then it is blocking all search bots from crawling your website . You need to change “Disallow:/” to “Allow:/” so that bots can crawl your whole site .

If you need to change your robots txt file then in your Google compute instance initiate an SSH session and then use the following command to access and edit your robots file .To edit Robots.txt file for wordpress using google cloud ssh use following command in SSH .

~$ sudo nano /var/www/html/robots.txt

After editing your file use ctrl+X and Y to save it and exit the session .