Magento On Ec2

How To Install Magento On Amazon EC2

Magento is an open source content management system for e-commerce based web applications. It is a popular e-commerce open source web application. There is also an enterprise edition for Magento. So, the open source can be used for small-scale e-commerce websites and you can modify the application based on your necessities. Enterprise edition, on the other hand, can be used for the high end e-commerce site and the application customization preferences are more when likened to the open source version.

You can read a comparison between Joomla CMS and Magento here

In this tutorial, I will explain how you can set up an open source Magento framework on amazon ec2 machine.

Ec2 instance Configurations:

1. Launch an Ubuntu instance using the management console. When launching the instance , make sure you open port 80 in the security groups.

Read: How to launch an Ubuntu instance on amazon ec2

2. Connect the instance using putty.

Read: How to connect ec2 instance using putty.

3. Login as root user.

4. Update the server

Install LAMP stack:

Magneto backend needs apache , Php, and Mysql database. You can configure all three applications using one command.

1. Install and configure Lamp stack.

2. Create a root password for MySQL and confirm it.

3. You can check if apache and MySQL service are running using the following commands

4. Magento needs a database on MySQL server. You can create a database on MySQL server using the command line and PHPMyAdmin. I prefer PHPMyAdmin since you can manage your MySQL database from the browser using GUI.

5. Install PHPMyAdmin on Ubuntu instance

You will be prompted to select the web server. Select apache using the space bar and hit enter. Then you will be prompted to enter the PHPMyAdmin root password. Give a strong password.

Phpmyadmin has to be integrated with mysql-server. So when prompted select db-conf and enter the MySQL root password you created during the LAMP stack installation.

6. Once installed, you can access the PHPMyAdmin dashboard using the public IP, elastic IP or the Public DNS of your instance followed by /phpmyadin.

7. Login to PHPMyAdmin using the credentials you created . The default username is root and password is the password you created during PHPMyAdmin setup.

8. Create a database magentoDB for Magento application using PHPMyAdmin. Click the database option in the top navigation panel and enter magentodb for the database name and hit enter.

 
Download Magento

1. Download Magento to the /var/www folder.

2. Untar the file

3. Change the file permissions for the following folders to give magneto write permission on those folders.

4. Add encrypt extension to the php.ini file located in /etc/php5/apache2/php.ini

5. Install php5 curl.

6. Add curl extension to the php.ini file.

Installing Magneto stack:

1. Go to http:// <IP>/magento from your browser. Magento installation wizard will appear.

2. Tick the terms and conditions and hit continue.

3. Select the timezone, locale, and currency and hit continue.

4. Enter the MySQL credentials and database name “magnetodb” in the required field. Enter username and password for MySQL . Check all the details and click enter.

Note: You can use Amazon RDS for the backend database. If you are using RDS MySQL provide the database endpoint in the host field. And give the username and password for the RDS database server

5. For admin account, enter your personal information, login information , the encryption key and hit continue.

6. That’s it!! Installation is done!! You can now access the front end and the backend using the options given in the page. Survey is optional.

Related

Hosting a static website in amazon s3 is really simple. S3 is an object store; you can store any type of file in s3.…

Read more
install and setup wordpress on amazon ec2

[alert-announce]Note: This is a normal WordPress setup for testing. Please use our latest tutorial on WordPress…

Read more

The majority of the big, small and medium businesses moved their infrastructure to cloud for agility, scalability,…

Read more
About

Cloud Computing Tutorial Blog