A cloud server is a logical server that is built, hosted and delivered through a cloud computing platform over the Internet. Cloud servers possess and exhibit similar capabilities and functionality to a typical server but are accessed remotely from a cloud service provider.

This tutorial will explain how to create and host a website in google cloud server. The following prerequisites are mandatory.

  • Google Account
  • Credit card for signing up with google cloud (no charges, just for verification).
  • Valid Domain with access to its dns.
  • Basic knowledge in html, python, putty application (beginner level is enough)

Step 1: Creating a private cloud server with Google Cloud

  • Visit https://cloud.google.com
  • Click on Sign-in button on top right corner.
  • Sign-in with your google / gmail account.
  • After successful sign-in, click on console button on top right corner, or visit the URLhttps://console.cloud.google.com
  • Agree and continue the terms and conditions.
  • In the next page you will see the following option. 
  • Click on it. (Google now offers free 300 dollar credit for its new customers with 12 months validity).
  • In next step, you may be asked to fill basic demographic details, fill everything and accept the terms.
  • In next step choose account type individual / business.
  • Fill tax information (optional), personal details and finally enter your credit card details.
  • Google needs your credit card on file and they won’t charge you till you consume the 300 dollar free credits.
  • Finally click on Start my free trial button.
  • Then you will be taken to the dashboard as shown below. 
  • Click on Go to project settings and rename your project. (Note: All the settings and customization you apply will be valid throughout a project. Google applies settings to project as a whole.) 
  • After renaming (no spaces, only lower case characters allowed) click the save button.
  • Goto menu -> compute engine -> vm instances as shown below. 
  • Depending on server performance, the compute engine will get ready and will display a message like this. 
  • Make sure to check your email for welcome email and complete your profile for full access. Also google may ask you to upgrade your account for full access, please accept it if you want complete control of your cloud server. You won’t be charged till you consume your 300 dollar free credit.
  • Once everything is ready, you will see this. 
  • Click the create button to create your first cloud server with google. You can choose server configurations in next page. 
  • Choose a name, zone (server location, for more details visit: https://cloud.google.com/compute/docs/regions-zones/regions-zones)
  • Choose machine type. (CPU and RAM). Also note the estimated price per month changes as per your selection.
  • For a normal web server with medium traffic websites choose 1vCPU. For low traffic economic server choose small 1 shared vCPU.
  • Choose boot disk as Ubuntu 16.04 LTS with standard persistent disk and choose your disk size (32 GB preferred), which can be expanded later as per your requirement.
  • On firewall, check both HTTP and HTTPS traffic, so that your server can be accessed from the internet.
  • Once everything is set, click on create button.
  • Within seconds your instance (server) will be ready with internal and external ip address as shown below. 
  • Once ready, click on the instance name and you will see something like this. 
  • Click the edit button and scroll to the bottom of the page and select network interfaces option. 
  • Click the edit pencil icon. you will see the following screen. 
  • Click on Ephemeral option and create a new ip address and assign it. Now your instance has a static ip address as shown below. 
  • Click done and save and now your instance (cloud server) is ready for the world which can be accessed by the external ip address assigned.
  • Do not reserve more than one static ip as google charges extra for unassigned / unused reserved static ips.
  • Now that you own a private cloud virtual server, see the next part of this tutorial on how to point a domain to use your server using serverpilot.
  • Click the following link to read part 02 of this tutorial about hosting website in google cloud.
    https://www.thinkspecific.com/build-cloud-web-server-part2/
The following two tabs change content below.
Specific Thinking in Science & Technology

Latest posts by Think Specific (see all)


Think Specific

Specific Thinking in Science & Technology

Leave your comments..