PickBazar Documentation
WelcomeHow It Works
Prerequisite
Installation
Available Scripts & Command
How Can I use this app
Demo Deploy
Features
Settings
Payment
Flash Sale
Shop Transfer
Social LoginOTP (Mobile Number Verification)WalletEmail ConfigurationEmail VerificationSubscribeTerms and conditions
SEO and Analytics
Refund
Real-time Notification
Multilingual & Translation
Third-party Integrations
Deployment
AWSHow to create ec2 server?Domain SetupLogin to ServerVirtual Private Server (Automated Script)cPanel/Managed ServerVercelVirtual Private Server (Manual)Re-build AdminRe-build Shop
API
Back-End Integration
Customizations
Update & Upgrade Guide
FAQ PageContactQuestion & AnswerFAQBreaking ChangesSupportChange Log

AWS (Amazon Web Service)

If you want to use all the scripts (shop, admin, api) on the same server as this tutorial, then we recommend creating a blank ubuntu-based server with at least 2+ CPU cores and 2GB+ memory.

How to create ec2 server?

In this AWS tutorial, we're going to create an ec2 server. To do that at first, login to your AWS account and then click,

ec2 -> Instance -> Launch Instance

1_ec2

2_launchInstance

Then select a ubuntu 20.04 server

After that, click Next -> Next -> Next -> Next

And on security pages, add a rule for HTTP,HTTPS and SSH,

Our automation scripts setup HTTPS in your domain so you should open HTTPS

aws_security_group

After review, click Launch, and you'll get and popup for KeyPair, which will be required to login to the server using ssh.

If you already have a previous KeyPair, you can use that; otherwise, you can create a new one. After completing that, make sure you download that KeyPair.

4_KeyPair

After launching the instance, you'll get the server IP, which will be required to login into ssh.

5_ServerIP

Domain Setup

Now copy the server IP and connect it with your domain name.

5_ServerIP

Please contact your domain provider for detailed explanation of how to do that.

Our server setup is done; now, we're going to set up the domain.

For domain and DNS, we're going to use Cloudflare. It's a free DNS service that is used for DNS management and CDN. Not only that, it can be used to improve the security of your website as all the network come throw your website by Cloudflare, and Cloudflare can prevent most of the security threats based on their traffic filtering.

To use Cloudflare,

  1. Create a Cloudflare account

  2. Add a site

  3. Input your domain name

  4. And change the nameserver to your domain provider admin panel. -->

    Now we'll be connecting our created AWS server with Cloudflare.

To do that, copy the IP Address from the AWS panel and then add it to Cloudflare as an A record.

5_ServerIP

6_ConnectCloudflare

Then add and another CNAME record for www

7_CloudflareCName

We successfully create our server and domain. Now we're going to set up the server to host the pickbazar. -->

Login to Server

At first, login to your AWS server using ssh. to do that, go to the folder from the terminal where KeyPair is downloaded.

then click Connect

8_Connect

From the Connect dashboard, go to SSH Client and copy the example line and paste it to your terminal.

9_Copy.jpg

With this command, you will successfully connect to your server throw ssh.

Change permission .pem

You've to change the permission downloaded .pem file to 400 to access the server. To do that, at first go to the location where .pem store then run,

chmod 400 pickbazar.pem

Change the pickbazar.pem filename if you use a different name during generate the key.

Now go to the VPS Server section for deploy the Pickbazar Laravel

VPS Server