Points de contrôle
Use Cloud Marketplace to deploy a LAMP stack
/ 10
Google Cloud Fundamentals: Getting Started with Cloud Marketplace
Overview
In this lab, you use 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.
Component | Role |
---|---|
Linux | Operating system |
Apache HTTP Server | Web server |
MySQL | Relational database |
PHP | Web application framework |
phpMyAdmin | PHP administration tool |
You can learn more about the Bitnami LAMP stack from the Bitnami Documentation article Google Cloud Platform.
Objectives
In this lab, you learn how to launch a solution using Cloud Marketplace.
Task 1. Sign in to the Google Cloud Console
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
-
Click the Start Lab button. If you need to pay for the lab, a pop-up opens for you to select your payment method. On the left is the Lab Details panel with the following:
- The Open Google Cloud console button
- Time remaining
- The temporary credentials that you must use for this lab
- Other information, if needed, to step through this lab
-
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
Note: If you see the Choose an account dialog, click Use Another Account. -
If necessary, copy the Username below and paste it into the Sign in dialog.
{{{user_0.username | "Username"}}} You can also find the Username in the Lab Details panel.
-
Click Next.
-
Copy the Password below and paste it into the Welcome dialog.
{{{user_0.password | "Password"}}} You can also find the Password in the Lab Details panel.
-
Click Next.
Important: You must use the credentials the lab provides you. Do not use your Google Cloud account credentials. Note: Using your own Google Cloud account for this lab may incur extra charges. -
Click through the subsequent pages:
- Accept the terms and conditions.
- Do not add recovery options or two-factor authentication (because this is a temporary account).
- Do not sign up for free trials.
After a few moments, the Google Cloud console opens in this tab.
Task 2. Use Cloud Marketplace to deploy a LAMP stack
-
In the Google Cloud Console, on the Navigation menu (), click Marketplace.
-
In the search bar, type
LAMP
and then press ENTER. -
In the search results, click Bitnami package for LAMP.
If you choose another LAMP stack, such as the Google Click to Deploy offering, the lab instructions will not work as expected.
-
On the LAMP page, click GET STARTED.
-
On the Agreements page, check the box for Terms and agreements, and click AGREE.
-
On the Successfully agreed to terms pop up, click DEPLOY.
If this is your first time using Compute Engine, the Compute Engine API must be initialized before you can continue.
-
For Zone, select the deployment zone to
. -
For Machine Type, select E2 as the Series and e2-medium as the Machine Type.
-
Leave the remaining settings as their defaults.
-
Click Deploy.
-
If a Welcome to Deployment Manager message appears, click Close to dismiss it.
The status of the deployment appears in the console window: lampstack-1 is being deployed. When the deployment of the infrastructure is complete, the status changes to lampstack-1 has been deployed.
After the software is installed, a summary of the details for the instance, including the site address, is displayed.
Click Check my progress to verify the objective.
Task 3. Verify your deployment
-
When the deployment is complete, click the Site address link in the right pane. (If the website is not responding, wait 30 seconds and try again.) If you see a redirection notice, click on that link to view your new site.
Alternatively, you can click Visit the site in the Get started with Bitnami package for LAMP section of the page. A new browser tab displays a congratulations message. This page confirms that, as part of the LAMP stack, the Apache HTTP Server is running.
Congratulations!
In this lab, you deployed a LAMP stack to a Compute Engine instance.
End your lab
When you have completed your lab, click End Lab. Google Cloud Skills Boost removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
- 1 star = Very dissatisfied
- 2 stars = Dissatisfied
- 3 stars = Neutral
- 4 stars = Satisfied
- 5 stars = Very satisfied
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Copyright 2022 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.