Installation of Magento On AWS
Installation of Magento On AWS
Web Services)
According to Magento customer and market share report, the popular Content
Management System (CMS), currently powers 842,618 websites. Wow, that’s a huge
number. If you own an ecommerce store, or you are thinking to setup an ecommerce
store, Magento should be your first choice CMS for setting up an ecommerce
platform.
To begin with, we will first host Magento on Amazon Web Service (AWS) platform.
You might ask why am I considering AWS to host my site when Google is also
available? Because AWS hosts the world’s number one ecommerce store Amazon.
Let’s begin with Magento AWS hosting.
You have to follow these steps to Install Magento on AWS:
Select the Ubuntu server. Most developers tend to use Linux operating system to carry
out their tasks, therefore I prefer Ubuntu. If you are a Windows user, and you want to
select a Windows operating system, you are more welcome to do so. The
configuration is almost identical.
You can configure your machine (i.e. instance). Since, there is nothing much to do,
proceed ahead with add storage.
Now, the system will ask you to add storage. By default, the storage size is enough,
but if you want to increase, then just
Now, you can add rules about which people from across the globe will access your
server. Do they have to follow a protocol to reach to a server? For now, I am making
my server accessible to all traffic. Later, we can put security rules. Navigate to Type
and select All traffic. In the source, click anywhere. It should look like this:
Click review and launch. Then you will have the opportunity to review your
configuration again. Click Launch. You will see the following prompt.
Here, instead of choosing an existing key pair, select a new key pair and give it a
name.
You might be wondering what is a key pair? In simple words, its a key which lets you
connect to your server machine securely. It consists of a public key that AWS stores,
and a private key file that you store. Together, they allow you to connect to your
instance securely. For Windows AMIs, you must use the private key file to obtain the
login password for your instance. For Linux AMIs, the private key file allows you to
login to your instance with active SSH.
Download the key pair and keep it secure, as without it, you won’t be able to access
your server. Now click on launch instance.
A new screen will open up.
Ignore the old server. You might not see the name of your server. Now, navigate to
the empty space and you will notice a pencil write icon. Click on it and name your
server. You must wait for a while and then refresh the screen. Check your system
status:
Now, you must connect to your server. Before, you do that make sure you have git
installed, because we will use it to connect to our server. Now, select your new
server:
Click Connect.
Now that you know about how to connect to your new server, we will opt the easy
way. Remember the key pair you downloaded earlier? Navigate to that folder.
Assuming, you have git installed, right click in empty space and select git bash here
option. Now copy the line, I underline just below the example which starts with ssh -I
…….
ls -al
This will show all the directories on the server.
sudo su
This will direct you to the home/ubuntu directory. It means that you have logged in
as a root user.
apt-get update
This will update your server with the latest tools.
cd /etc/apache2/
sudo nano apache2.
Press ctrl+w and search indexes
cd /var/www/html
git clone https://github.com/Magento/Magento2.git
cd Magento2
Now just install composer:
composer install
If you come across an error like this:
Setup Database
Login MySQL by this command
mysql -u root -p
It will ask you a password. By default it’s none, so just press Enter. Now you are in
MySQL terminal.
show databases: shows you current table.
create database Magento: it will create a database for Magento
exit: it will exit from MySQL terminal
Install and Configure Magento on AWS
Navigate to your public IP address:
For now, we have taken a simple, easy path to set up Magento on AWS server. Right..
But the journey doesn’t end here. There was no talk to secure your server or your site.
There was no steps or methods defined to make your site load faster or optimize the
performance of your website. Is it my fault that I did not discussed that? Nope, I can
but then it wont look like an article but rather would look a book chapter.
Therefore, instead of going through all the hassle of setting up the server and
managing it when it comes to security, performance and reliability, you should
choose Cloudways Managed Magento Hosting.
WHY? Here are the reasons.
A Choice From Multiple Renowned Infrastructure Providers
Cloudways provides multiple cloud platforms such as AWS, Google Cloud, and DO.
Moreover, it enables you to deploy your Magento store in more than 40 locations
across the globe.
Auto-Scalability
Another amazing feature of Cloud ways is auto-scalability – the ability to scale the
resources whenever there is a need. It is easy to meet the hardware requirements of the
ecommerce store with this platform, as you simply need to select the server size and
deploy it.
Cost-Effective
Another feature that works in favour of this platform is its cost-effectiveness. Not only
has a reasonable price tag, but also follows the pay-as-you-go model. The users only
have to pay for the resources they consume.
Seamless Support
Seamless, round the clock, tech support comes as the additional advantage of having
your Magento store run on Cloudways. Technical support is available 24×7 with Live
Chat and Ticketing system.
First, create an account on Cloud ways. Once you have the account setup, launch your server on the
platform.
The best part about using Cloud ways is that you get to choose from five different
cloud hosting providers including AWS, Google Cloud, Digital Ocean, Linode, and
Vultr.
Next, select the location of the server that you want to launch. That’s it.