Saturday, March 30, 2019

TCPLABS G Cloud - GCP Start with Cloud Marketplace


This blog provides an introductory overview of Google Cloud Platform(GCP) products and services. In future blogs, you will learn the value of GCP and how to incorporate cloud-based solutions into business strategies. The sections have been divided into different quests which have screenshots describing the look and feel of Google Cloud Platform and all the fun stuff one can do with it.

GCP Fundamentals: Getting Started with G-Cloud Marketplace:

In this blog you will learn how to use the Google Cloud Marketplace to quickly and easily deploy a LAMP stack on a Compute Engine instance. The Bitnami LAMP Stack provides a complete web development environment for Linux that can be launched in one click.

Figure 1. Bitnami Components and Roles

For more information on the Bitnami LAMP stack, see:

Quest 1: Sign in to the Google Cloud Platform (GCP) Console

  • Click here:
  • Click on Go To Console:

    Figure 2. GCP Console - The Gateway

  • You WILL need a free tier Google Cloud Platform account or project.

Quest 2: Use cloud marketplace to deploy a LAMP stack:

· In the GCP console, on the navigation menu click Marketplace:

· In the search box type “LAMP”:

· Click on LAMP Certified by Bitnami:

· You can choose other LAMP stacks like Google Click etc.

· On the following page, click on Launch on Compute Engine:

NOTE: If this is your first time using Compute Engine, the Compute Engine API must be initialized before you can continue.

· Clicking on the Launch on Compute Engine asks you for Enabling a free trial if you do not have one:

· Step 2 will consist of details which you will need to fill in for Account Type, Name and Address and the Payment Method so that Google can verify you. Note that Google does not auto-charge you after the free trial ends.

· Ensure to have created a GCP Project since in GCP everything happens within the Project:

· This is how the Project dashboard looks:

Note: You can have upto 24 Projects in the Free Tier.

· If Everything goes well until now, you should be able to choose your project for this LAMP deployment on the Project that you created:

· Once you Click on Open after choosing the project, in this case Tcplabs-gcp-1-test, GCP takes some time to configure the requisite APIs:

· Once the APIs are configured, you should get something similar:

· Choose the Deployment name and Zone of your choice and leave the remaining settings as their default. In case you are prompted to accept the GCP Marketplace Terms of Service, do so.

· Finally Click Deploy:

· The Deployment Manager runs for the while as follows:

Note: If a Welcome to Deployment Manager message appears, click Close to dismiss it. The status of the deployment will appear in the console window: tcplabs-webserver-1 is being deployed. When the deployment of the infrastructure is complete, the status changes to tcplabs-webserver-1 has been deployed:

· After the software is installed, a summary of the details for the instance, including the site address, is displayed.

Quest 3: How to ensure that the Deployment has been Successful?

· Post completion of the deployment, click Site address link in the right pane. You may also click on in the Get started with LAMP Certified by Bitnami section of the page and should get the following Congratulations Message:

· Close the Congratulations Browser tab and on the GCP Console click the just created SSH:

After some wait:

You should be able to get to the following section:

· Change the directory to /opt/bitnami as under:

Cmdlet: cd /opt/bitnami

· Copy the phpinfo.php script from the install directory to a publicly accessible location under the web server document toot and execute the following:

Cmdlet: sudo cp docs/phpinfo.php apache2/htdocs

This script displays the PHP configuration and is often used to verify a new PHP install.

· Type Cmdlet: exit to close the SSH window.

· Open a Browser and type the following URL while replacing SITE_ADDRESS with the URL in the Site address field in the right pane of the lampstack page:

· In this case we will type: to get the following page:

· Close the phpinfo tab.

You just learnt how to deploy a LAMP stack to a GCP Compute Engine instance.

For feedback, suggestions, or corrections, please leave us a comment below.
Join the tcplabs’ Cloud Webex Teams Space here: