Peace upon you. Securing NGINX server with SSL is easy. Normally Let’s encrypt establishes a secure link between a web server(it represents the domain) & a browser. And we already know that Let’s encrypt is totally free to certify your domains. If you don’t know how to certify domain with one root, this story will assist you to secure your web server.

Now come to the point. In your NGINX server you might have only one domain but you want to make multiple root folders like

So, you want to secure all the root folders with multiple ports like…

Laravel is an open-source PHP framework that provides a set of tools and resources to build modern PHP applications. In this guide, you’ll install and configure a new Laravel application on an Ubuntu 18.04 server, using Composer to download and manage the framework dependencies.

In order to complete the configuration, you will first need to perform the following tasks on your Ubuntu 18.04 server.

First logged into your remote system via ssh (Secure Shell).

ssh root@server_ip_address

Let’s begin by updating server’s package index

sudo apt-get update


Step 1: Install a LEMP (Nginx, Php & MySQL) Stack

If you haven’t set…

This story will assist you to deploy React or any JS application in Ubuntu.

Server requirements

You need a Linux based system, I’m gonna use Ubuntu 18.04 for this story, you are free to use your own 😀
Disk : ~25GB
Memory : 2GB
CPU: 1 core

First logged into your remote system via ssh (Secure Shell).

ssh root@server_ip_address

Let’s begin by updating server’s package index

sudo apt-get update


Step 1: Install NodeJS and npm

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. NPM is a package manager for the JavaScript programming language. …

While building APIs with micro-service based application, we often face an error as — ‘https://localhost:8000’ has been blocked by CORS policy: No Access-Control-Allow-Origin header is present on the requested resource.

We usually know this issue as ‘CORS’ issue. Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a different origin. The CORS standard is needed because it allows servers to specify not just who can access its assets, but also how the assets can be accessed.

This story will assist…

This tutorial will assist you how to set up a TLS/SSL certificate from Let’s Encrypt on an Ubuntu server running nginx as a web server.

First logged into your remote system via ssh.

ssh root@server_ip_address

Let’s begin by updating server’s package index

sudo apt-get update

Now install certbot & other dependent packages. Certbot is a command line client for Let’s Encrypt. python-certbot-nginx is Certbot’s Nginx package with apt-get.

sudo apt-get install certbot python-certbot-nginx

After installation check your certbot version.

certbot --version

Let’s start registration process for certificate. Run below command-

sudo certbot certonly --nginx

In above command as we put…

At first Install and Configure MySQL Database Server in Ubuntu. If you have not installed yet, read this story.

So, right now you are connected with MySQL Database server with Ubuntu/Debian machine. This story is going to assist you to know how to connect MySQL Database server from a different/remote machine. You can use remote root connection or if you want, you can use remote user connection too. Here, you will know how to connect remotely to MySQL not only by root login but also by user login.

Remote Root Login

You can check at the same time is it…

Run below commands for mysqld.sock and

sudo touch /var/run/mysqld/mysqld.sock
sudo touch /var/run/mysqld/
sudo chown -R mysql:mysql /var/run/mysqld/mysqld.sock
sudo chown -R mysql:mysql /var/run/mysqld/
sudo chmod -R 644 /var/run/mysqld/mysqld.sock

Now please do mysql service restart

sudo service mysql restart

You can connect to mysql now

mysql -u root


mysql -u root -p

Have fun 🔥 💪

If you have any query, please put in below. Find me on Github.

Here, we’ll learn how to generate fake data with factory & seed into database. After installation of laravel & composer successfully, first set up Database configuration in .env file


Please run the below command in terminal.

php artisan make:model Person -mf

This command will create a migration file in database/migrations & a factory file in database/factories

Now update the people_table with below code in database/migrations

Schema::create('people', function (Blueprint $table) {	

Update the PersonFactory.php with below code in database/factories

$factory->define(Person::class, function (Faker $faker) {…

LEMP is a variation of the ubiquitous LAMP stack used for developing and deploying web applications. Traditionally, LAMP consists of a Linux operating system , a Nginx (Pronounced as Engine-X) web server, MySQL database server, and PHP for dynamic data processing. Due to its modular nature, the components can easily be swapped out. With LEMP, Apache is replaced with the lightweight yet powerful Nginx.

Step 1: Installing the Stack

This guide demonstrates how to install a LEMP stack on an Ubuntu with individual packages. Let’s connect to the server via SSH. Simply open terminal & put below command. …

Building laravel 6 REST APIs with JWT Authentication

let’s start building a robust restful API in Laravel using JWT Authentication. JSON Web Token (JWT) is an open standard that allows two parties to securely send data and information as JSON objects. It makes it convenient to authorise and verify clients accessing API resources.

Getting Started A New Project

Step 1: Install Laravel

Install a new Laravel project using Composer’s create-project command

composer create-project --prefer-dist laravel/laravel AUTH-JWT

Step 2: Setting up Database

Add the database details to the .env file.


Step 3: Install tymondesigns/jwt-auth Package

Let’s install the package via Composer

composer require tymon/jwt-auth:dev-develop --prefer-source

Rabib Galib

Software Dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store