GCP Cloud Marketplace (Deploying A LAMP Stack)
Tags: cloud, googlecloud, cloudmarketplace, lamp
Published: 2022-12-03 13:17:25

The use of cloud computing services across the host of many service providers currently available may seem daunting to anyone trying to get started with the cloud. This does not need to be the case and one way to easily get started is by leveraging GCP’s Cloud Marketplace. 

Cloud Marketplace is a service provided by Google Cloud Platform (GCP) that offers a wide range of software packages that are hosted on underlying GCP services such as Google Compute Engine, Cloud Storage, VPC and many others. 

The great thing about this service is that you are not required to perform any administrative overhead such as installing, patching, hardening, and running jobs on these virtual machines (Compute Engine). It scales linearly as demand surges and the use of your application increases. You can just select a stack that you’re conversant with and get started right away.

I will demonstrate how you can do this in the following steps. In my use case I’ll be launching a LAMP stack hosted on GCP’s Compute Engine instance; one that many application developers and business organisations also use in the deployment of their applications and workloads. A LAMP stack is essentially comprised of a Linux operating system, an Apache HTTP web server, MySQL relational database and a PHP application framework and administration tool(phpMyAdmin).

Firstly, you need to be registered as a GCP user. The process involved to do this is simple and you can easily set up your account by following the step by step guide offered on the Google cloud website https://console.cloud.google.com/  Alternatively you can register an account on Qwiklabs https://www.cloudskillsboost.google/ to follow this demonstration.

**_Now that we have explored the various means to access the Google Cloud console we can login and navigate to cloud marketplace._**![GCP Console](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmv1uchk077pccvxogus.png)

&nbsp;




**Click on the navigation menu and select Marketplace.**_![Cloud Marketplace](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fzm6cyoe3j224m6z3ss5.jpg)

&nbsp;


_**Enter ‘LAMP’ in the search field  and select ‘LAMP packaged by Bitnami” from the search results.**_![Cloud Marketplace](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxowt8l76260xpdhys15.png)

&nbsp;


_**Click on Launch from the LAMP page**_![Bitnami Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i2d30az2xk6k2ind186b.png)

&nbsp;


_**The following entry fields i have filled indicate my configuration details for the LAMP stack**_![LAMP Stack Configuration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4lv1if4ya92fudkoigy8.png)

&nbsp;


_**Take a careful look at each entry field and ensure that it aligns with the exact specifications you will need for your use case, especially when deploying this web environment for production.**_

&nbsp;


_**Review the terms and conditions, and select accept and Click on deploy afterwards.**_![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2dju1ntp3dmjw3ask15c.jpg)

&nbsp;



_**To verify our deployment we can click on the site address link  provided after the deployment is complete. This link can be found on the same page we were directed to when we were launching our LAMP stack**_.

&nbsp;



_**A browser tab like this should open with this exact interface .**_![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2axp1lwpsp4qu8x7ydqx.png)


**_We can also SSH into our deployment by clicking “SSH” on the “Get Started with LAMP Packaged by Bitnami” page from our GCP console._**

_**To verify that our web server is running we can enter the command**_ `sudo sh -c 'echo "<?php phpinfo(); ?>" > apache2/htdocs/phpinfo.php'`

&nbsp;



This walkthrough has sought to demonstrate how you can easily get started with using GCP services from Cloud Marketplace to handle your various workloads especially if you are new to the cloud and yet to be familiarised with the myriad of services provided by GCP.


￼










￼