Magento is an open source eCommerce platform which is highly customizable and secured. You can setup your own online store with any feature that suits you. Magento provide shopping cart, inventory management and much more. Today we will focus on how to install Magento on Amazon Aws Ec2.

For this tutorial I assume that you have already know how of how to launch an Ubuntu instance on amazon ec2 and connect ec2 instance using putty. Make sure you open port 80 in the EC2 instance security group when launching Ubuntu.

Log in as root user

after login the EC2 instance with ubuntu user run the below command to get root login

Sudo Su

Now update the server

apt-get update

apt-get works with Ubuntu’s APT (Advanced Packaging Tool) library to perform any installation, updates and removal of software packages. Here we are using to update server.

Install LampStack

apt-get –y lampstack

Magento needs apache, php and MYSQL database as an initial requirement. We can configure all three using this single command

During installation it will prompt you to enter the root password for mysql, kindly enter your password and note it which will require for further use.

Or

You can even do this by Taskel

Use following commands:

apt-get install taskel
taskel install lamp-server

Check if Mysql and apache services are running

Service apache2 status
Service mysql status

This command will return the status of apache2 and MYSQL

Setup MySQl Client

You can install Phpmyadmin in(Secure way to access database. We suggest to use MySQL Client like MySQL Workbench and SQLyog

On terminal create ssh user

adduser magento

(you can use any name you like)

It will ask to enter password twice, kindly enter the password of your choice.

Mubashir has served many clients in the domain of Web Development. He loves to work in Business Intelligence and Data-warehousing. He is engaged in latest eCommerce trends and also loves to Travel. You can follow him on Twitter @m_ahmdd or e.mail mubashir.ahmad[at]arpatech.com