Read Story
Watch Main Stage Talk
Download Now
Bhawana Dehran

How to install Bagisto on AWS

An eCommerce platform is the foundation of online business regardless of whether it’s B2B or B2C. The right eCommerce platform will also help in simplifying the business interaction process with the consumers, employees, and clients. Therefore, if you don’t have a strong eCommerce platform then you can’t compete online. So, the right eCommerce platform plays a very important role in expanding and increasing the market, And Bagisto is amongst them. In this blog, we’ll learn how to install Bagisto on AWS (Under Free-Tier Policy).

 

You may wonder why i prefer Bagisto as an eCommerce platform and AWS as hosting provider to host my website, while we have other hosting providers too? So, let’s keep answering the simple question.

What’s the bagisto, exactly?

Bagisto is an open-source eCommerce platform, which is built on various open source technologies, such as PHP framework, laravel, Vue.js, MySQL.

It is built for merchants to launch their own shopping cart system with a wide variety of fully controllable features. It also offers numerous post-commerce solutions, such as Marketplace solutions, POS solutions, PWA App, and Dropship solutions.

Why we’re using AWS?

Cloud Computing allows an eCommerce platform to cater to the changing market demand and scenarios. It also offers scalable technology tailored to business needs and allows upscale or downscale facilities depending on demand and traffic.

Additionally, Amazon Web Services (AWS) is the most advance and widely acceptable cloud platform in the world that provides more than 175 fully integrated data center facilities worldwide. A million users use AWS to cut costs, to make themselves more agile, and to innovate faster.

 

Installation requirements for Bagisto:

What we’re going to use :

 

How to install Bagisto on AWS

So let’s move to the installation part:

STEP 1 : Sign-up or Sign-in to AWS console and also select the location of the webserver (AWS region), where you want to launch the EC2 instance.

 

 

STEP 2: Creation of EC2 Instance :

(i) Firstly, Select the EC2 among the available services of AWS.

 

 

(ii) And then Select the Launch Instance button from the dropdown menu.

 

 

(iii) Select the server ie, Ubuntu Server 18.04 LTS.

 

 

(iv) Now choose the Instance type and click on the tab, Next: Configure Instance Details.

 

 

(v) After the above steps, select the number of EC2 Instances, you want to run and then choose the tab, Next: Add Storage.

 

 

(vi) Now add up the storage as per your requirement and select the tab, Next: Add Tags.

 

(vii) Add tags and choose the tab, Next: configure security group.

 

 

(viii) Now, Click Add rule in configure security group, and ADD the following :

SSH, HTTP,  and HTTPS – select anywhere in the source column for all rules. After adding up the rules, select the review and launch tab.

 

 

(ix) Under this step, review the instance launch to recheck your Instance settings one more time and if everything goes right, then select the launch button.

 

 

(x) This step is concerned with creating a key pair (It’s better to use the domain name for the key pair name) , and after the creation download the key pair or pem file.


 

STEP 3: Log in to your Ubuntu Server by executing the command mentioned below :

After logging in, install the necessary application software.

 

(i) Install Apache2, php7.2 and its modules by executing the listed commands in correct order.

If any of the PHP modules remains, simply through this command you may install it.

sudo apt-get install php7.2-<module_name>

Check the version of PHP, if it is php7.2.x, then allow the PHP-module apache and the rewrite-apache module.

 

(ii) Install Curl and Node.js version 10.x

 

(iii) Install the Composer

 

STEP 4: SSH User creation

Presently, we were in our server’s root user, but due to security issues, we do not keep our application code in the directories of the root user. So, we have to create another SSH user for this.

Create an SSH user who will be the owner of the application code. I create an SSH user with the name “bagisto.” You can pick any name you want.

adduser bagisto

This prompts a password window where you can set the password. The remaining fields can be left empty by simply pressing enter key. Additionally, after creating a user, we will switch to a new user.

Now, create a new directory and move to that directory.

mkdir public_html && cd public_html

 

STEP 5: Download Bagisto by using the command below :

composer create-project bagisto/bagisto

After downloading, a directory name “bagisto” will be created inside the public HTML directory, then go to the public directory / bagisto. It is the directory that loads index.php.

cd bagisto/public

 

STEP 6 : Apache configuration

To support the web pages we will configure apache. So, we need to switch again to the root user for configuring apache.

You will find the following lines as shown below, after executing the above command.

Now, change this to :

Save it, and exit after this.

Furthermore, configure envvars file by executing the below command :

nano /etc/apache2/envvars

And find these lines :

Modify the apache user by this way :

Configure file apache2.conf by the following command :

nano /etc/apache2/apache2.conf

You will find the block code as shown below :

Modify it to the following code :

Save the file and exit it.

Now restart the Apache.

sudo service apache2 restart

 

STEP 7: Install MYSQL Server for database creation by executing the following commands :

 

STEP 8 : Bagisto configuration

After all the above steps, go to your browser and enter the IP address of your EC2 instance or domain name. A page similar to the one below will open and then click the “continue” button.

 

 

Similarly, a new Environment Configuration page will appear after selecting the “continue” option. Then enter the details and enter the same credentials you obtain while creating a database. You can also use your domain name in App URL.

 

Firstly the front end will be open after Continue. After that to access, the dashboard hit the URL “example.com/admin/” in the Admin panel, the admin login will open as in the image below.

 

 

In addition, this is what the default admin dashboard looks like.

 

 

As a result, the homepage of your default eCommerce website will be like this:

 

 

In short, your eCommerce platform is ready to use.

To know more about the Bagisto Installation on Google Cloud Platform (GCP) , just click the link .

 

In case of any help, query, or feedback please contact us or raise a ticket.

 

Thank you for reading this article,

Keep in touch!!

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php