In my previous article , I have explained How you can setup LAMP Stack , Joomla in AWS.

In this guide , we will learn how to setup Magento with once click deployment tools on AWS.

magento

What is Magento?

Magento is a feature-rich flexible e-commerce solution.

It provides online merchants with a flexible shopping cart system, content and functionality of their online store. Magento offers powerful marketing, search engine optimization, and catalog-management tools.

If you would like to Setup LEMP Stack (Linux , Nginx , MySQL & PHP) on Ubuntu , Refer this Article

It will also guides you to setup WordPress website powered by Nginx HTTP Server.

In this article We will see how to setup magento on AWS.

Setting UP Magento

Amazon offers a one click software deployment features along with the Operating system.We can launch an EC2 Instance which comes up with a tools such as WordPress , OpenVPN server etc.

But In this tutorial , We are going to deploy Magento, Which is the combination of App and OS using the Lightsail service.

Lets understand the basics of lightsail before deploying the LAMP Stack on it.

What is Lightsail?

If you don’t have much experience with Amazon WEb Services such as VPC , EC2 Instances , Load Balancers , Amazon Lightsail is the best and easy way to start.

magento

It provides a quick and easy way to deploy and mange instances along with applications such as WordPress , LAMP stack , Drupal and much more.

This features is mainly for developers who want to setup a test project to run applications without having much knowledge on managing aws services and also to avoid spending time on installing software or frameworks.

Deploying Magento

To setup Magento , Login to Lightsail Console

You should see the following page.

magento

Click Create instance,

Choosing Instance Location

We have to choose the Instance location , For example , I chose Mumbai

magento

Also You should choose the Availability Zone.

magento

Choosing Instance Image

Now We have to choose the Operating system , From these two Platforms: Linux and Windows.

If you select Linux/Unix , and If you choose OS only ,You have the option to select one of the following operating systems.

magento

But In this tutorial , As we are Deploying Magento as a One click software deployment , We choose Apps + OS and then select Magento

magento

And Optionally You can add the shell scripts which will run while the instance boots up.

Under SSH Key pair manager , You can use exiting key pair Or you can create one If you want.

To create a New key pair for this instance , Click Create New

And Click Create ,

magento

Type the name for the Key Pair and Download the .pem file.

magento

magento

Choosing Instance Plan

You can choose the Instance plan such as RAM , CPU and HardDisk based on your requirement.

For Magento Installation , We need an minimum of 2GB of RAM to run the Magento Stack.

magento

Provide a name for the Instance , and then add tagging for grouping the resources.

magento

At last , Click Create instance.

Once the Instance is Created and Running.

If you click the console icon , You will see the below error.

magento

Lightsail asks us to give a couple of minutes before SSH into the Instance.

After a minute or two , If you click the Console icon again , You should be able login to the Instance.

Once you login to the instance and check what are the packages and services are installed using netstat command.

You can see that Elasticsearch , Memcache , Varnish , MySQL , Apache2 and PHP are installed. These are the packages that should be available to run the Magento.

magento

To Login to Magento Admin Panel

Lets login to the admin panel of magento. The url to access the magento admin panel is

http://IP-Address/admin

The default username to login to Magneto admin panel is user

The password can be obtained from using the below command in the instance.

cat /home/bitnami/bitnami_application_password 

Once you get the username and the password , Access the admin panel and you should get the following page.

magento

Provide the username and password and click Sign in.

You will be taken to the Dashboard.

magento

We have completed the installation of Magento and we are able to access the Admin panel of Magento.

You should consider pointing the IP Address to the Domain name and Configure the SSL to secure the Magento.

Conclusion

We have successfully deployed Magento Stack on AWS using Lightsail service.

Hope this article helps you to setup Magento stack at ease.Thanks for reading this article.

Please do check out my other publications.