This post shows students and new users the steps to install the LEMP stack on Google Cloud servers running Ubuntu Linux. We’ve been through a series of posts starting with registering a domain name, setting up a Google Cloud server, and installing software and packages to help us build functional LEMP-based websites and applications.

We are now ready to install the LEMP stack that is used to build many of the most popular websites and applications online today.

LEMP (Linux, Engine-x, MySQL / MariaDB, PHP / Perl / Python) is an acronym for a common solution stack that powers many useful and popular websites and applications online today. The LEMP stack is also primarily used as a building block for most content management systems (CMS), including WordPress, Drupal, and Joomla.

This post is part of a series that can be used as a beginner’s guide to learning how to create a website domain, configure a Google Cloud server with Ubuntu Linux, and install software and packages to run websites and applications built on LEMP.

In this series:

Now that you have learned how to create a website domain, configure a Google Cloud server, install Apache, Nginx, PHP, and MySQL or MariaDB, you can continue below to tie it all together with any platform that uses the LEMP stack.

When we started this series, we said that a web server enables content to be published and served to web clients and the public browsing your website. A PHP or server-side scripting language allows for a more functional and dynamic website. A database server enables you to store your website content efficiently.

YOU CAN ALSO READ:   How to Enable .NET Framework 2.0 and 3.5 on Windows 11

Other programs and packages may also be required to enhance the functionality of a website. Here we will show you how to install these tools with LEMP-based websites and applications.

In our first post, we also said that after creating a domain name, it cannot be used until it is forwarded or pointed to a server. In the second post, we showed you how to point a domain to a server that we created. We then show you how to install software and packages to help us run an online website.

At this point, we are ready to connect to our Google Cloud server and install LEMP by linking the software and packages installed in our previous posts.

How to connect to Google Cloud servers

The Google Cloud (Compute Engine) server allows users to connect using SSH from the browser window to your virtual machine (VM) instance from within the Google Cloud Console.

Browser SSH supports the following:

  • web browsers
    • Latest version of Google Chrome
    • Firefox
    • Microsoft Edge
    • Microsoft Internet Explorer 11 and later
    • Safari 8 and later. Please note that Safari in private browser mode is not supported.
  • Virtual machine configurations
    • All Linux VM images that are available natively on Google Cloud.

No additional software or browser extensions are required. Just log in to the Google Cloud Console and go to Menu ==> Compute Engine ==> VM instances.

In the list of virtual machine instances, click SSH in the row of the instance you want to connect to.

establish ssh connection to vm instances

Alternatively, you can open an SSH connection to an instance by clicking its name and clicking SSH from the instance details page.

YOU CAN ALSO READ:   How to react to WhatsApp messages with emojis

An SSH terminal window will open with the Ubuntu Linux instance that was created in the second posts in the series.

You should now be able to run commands on Ubuntu Linux created on the Google Cloud server.

connect to the host of the Google cloud instance

How to install the LEMP stack on Google Cloud Servers

Installing and managing the LEMP stack on Ubuntu Linux is no different, whether it’s on Google Cloud servers or a local VM instance.

In fact, all of the above posts are related to the LEMP installation, except for the Apache installation. LEMP is Linux (Ubuntu), Engine-x, MySQL or MariaDB and PHP.

Once you have installed all the necessary packages, you should be able to access the LEMP stack from your browser by navigating to the server’s hostname or IP address.

A detailed post and help on how to install the LEMP stack on Ubuntu Linux is at the link below. Use this link to learn more about LEMP.

How to install LEMP on Ubuntu Linux

You should do that!

Conclusion:

In this tutorial we have seen how to install the LEMP stack on Ubuntu Linux on Google Cloud. If you find any errors above or have something to add, use the comment form below.

Write A Comment