nginx-logo

How to setup the Nginx web server on Ubuntu 18.04 Bionic Beaver Linux

Objective

Learn how to install and configure the Nginx web server on Ubuntu 18.04 Bionic Beaver

Requirements

  • Root permissions

Conventions

  • # – requires given linux commands to be executed with root privileges either
    directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

Introduction

nginx-logo

The Nginx web server, together with Apache, is one of the most known and used web servers in the world. It is generally less resource-hungry than Apache, and can be also used as a reverse-proxy.

In this tutorial we will see how to install and configure the Nginx web server on Ubuntu 18.04 Bionic Beaver.

Read more

Kibana Nginx Configuration On Ubuntu 18.04

Install ELK On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install ELK on Ubuntu 18.04 Bionic Beaver

Distributions

Ubuntu 18.04

Requirements

A working install of Ubuntu 18.04 with root privileges

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)

What is ELK

If you’re in a situation where you manage large amonts of data logs, the ELK stack is exactly what you’re looking for. The ELK stack combines Elasticsearch, Logstash, and Kibana into a simple, yet powerful, open source stack that lets you manage large amounts of logged data from a convenient graphical web interface.

All three tools are developed by Elastic, so they work in tandem perfectly, and they’re very easy to get set up on your Ubuntu system.

Read more

install lamp ubuntu 18.04

How To Install LAMP in Ubuntu 18.04 Bionic Beaver (Linux, Apache, MySQL, PHP)

Objective

The objective of this article is LAMP setup. Installing LAMP on Ubuntu 18.04 Bionic Beaver includes the setup of Linux, Apache, MySQL and PHP server, also known as LAMP stack.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver

Requirements

Privileged access to to your Ubuntu 18.04 system will be required.

Conventions

Read more

Apache Hadoop on Ubuntu 20.04 Focal Fossa

Ubuntu 20.04 Hadoop

Apache Hadoop is comprised of multiple open source software packages that work together for distributed storage and distributed processing of big data. There are four main components to Hadoop:

  • Hadoop Common – the various software libraries that Hadoop depends on to run
  • Hadoop Distributed File System (HDFS) – a file system that allows for efficient distribution and storage of big data across a cluster of computers
  • Hadoop MapReduce – used for processing the data
  • Hadoop YARN – an API that manages the allocation of computing resources for the entire cluster

In this tutorial, we will go over the steps to install Hadoop version 3 on Ubuntu 20.04. This will involve installing HDFS (Namenode and Datanode), YARN, and MapReduce on a single node cluster configured in Pseudo Distributed Mode, which is distributed simulation on a single machine. Each component of Hadoop (HDFS, YARN, MapReduce) will run on our node as a separate Java process.

In this tutorial you will learn:

  • How to add users for Hadoop Environment
  • How to install Java prerequisite
  • How to configure passwordless SSH
  • How to install Hadoop and configure necessary related XML files
  • How to start the Hadoop Cluster
  • How to access NameNode and ResourceManager Web UI

Read more

Ubuntu 20.04 PostgreSQL

Ubuntu 20.04 PostgreSQL Installation

PostgreSQL is a database management system, similar to MySQL in many respects but with some key differences. Like MySQL, it’s commonly hosted on Linux. In this guide, we’ll show how to run a PostgreSQL server on Ubuntu 20.04 Focal Fossa, as well as installing the client version in case you just need to connect to an external PostgreSQL database.

In this tutorial you will learn:

  • How to install PostgreSQL Client and connect to a server
  • How to install and configure PostgreSQL Server

Read more

Reset root MySQL/MariaDB password on Ubuntu 20.04

How to reset root MySQL/MariaDB password on Ubuntu 20.04 Focal Fossa Linux

In this guide we will reset the lost root MySQL/MariaDB password on Ubuntu 20.04 Focal Fossa. This can be achieved by disabling the root authentication and longing in without the password.

In this tutorial you will learn:

  • How to reset root administrator password on MySQL 8 or higher
  • How to reset root administrator password on MariaDB 10.3 or higher
  • How to disable root authentication and login without password

Read more

Setting up a MySQL database and user on Ubuntu 20.04

Install MySQL on Ubuntu 20.04 LTS Linux

In this guide, we will show you how to install MySQL on Ubuntu 20.04 Focal Fossa. There are two separate packages for this on Ubuntu, depending on what you need to do. You can either install the MySQL client package, which is used to connect to MySQL servers, or install the MySQL server software, which can be used to host your own databases. We’ll cover both below.

After installing a MySQL server, we’ll also go over the first steps you’ll need to get started with hosting a database, which includes making a username and password, creating a database, and granting user permissions on that database.

In this tutorial you will learn:

  • Install MySQL Client on Ubuntu
  • Install MySQL Server on Ubuntu
  • How to setup a MySQL database

Read more

Installed WordPress on Red Hat Enterprise Linux 8 Server/Workstation.

How to install WordPress on RHEL 8 / CentOS 8 Linux

This article covers an installation of WordPress, free and open-source content management system, on RHEL 8 Linux Server. In this instance the installation is based on the well-know LAMP stack comprising the RHEL 8, MariaDB, PHP and Apache webserver.

In this tutorial you will learn:

  • How to Install LAMP Stack on RHEL 8 / CentOS 8.
  • How to configure MariaDB database.
  • How to install WordPress on RHEL 8 / CentOS 8.
  • How to open HTTP and HTTPS firewall ports.

Read more

MariaDB on Red Hat Enterprise Linux 8 database creation example

How to install Mariadb/MySQL server on RHEL 8 / CentOS 8 Linux

The default relational SQL database on RHEL 8 / CentOS 8 Linux has been chnaged from MySQL to MariaDB. MariaDB is a community-developed fork of the MySQL relational database and in-place substitute for MySQL.

In this tutorial you will learn:

  • How to install MariaDB/MySQL server
  • How to start and enable MariaDB to start automatically after reboot
  • How to secure MariaDB database and set root password
  • How to create database for a remote access
  • How to open MySQL/MariaDB firewall ports for incoming traffic
  • How to login to MySQL/MariaDB from a remote host

Read more

Example query in mongodb.

How to install mongodb on RHEL 8 / CentOS 8

MongoDB is a document database, storing data in JSON-like form, which is revolutionary approach in the contrast of traditional relational databases. This does not mean that SQL databases will die out anytime soon; they will be here for a long time when you need to store structured data.

That being said, MongoDB gets more and more use cases; the ability to store data in a form that can change on the fly are things that must be counted with.

In this tutorial we will install the latest community release of this NoSQL database to a RHEL 8 / CentOS 8, using the tarball package. For this to work smoothly we’ll set up the minimal environment, and test our configuration and running service.

In this tutorial you will learn:

  • How to download & extract MongoDB tarball
  • How to set up environment for the service
  • How to manage mongod service
  • How to login to mongo shell, insert and query sample data

Read more

Recording data trough browser

Persisting data into a PosgreSQL database with PHP

PHP is a widely used server scripting language. It’s vast capabilities and lightweight nature makes it ideal for web frontend developing, and while it is possible to create advanced structures in it, it’s basic usage also easy to learn, which makes it a good starting point for beginners also. The data recorded, processed, sent or displayed by the application we build is need to be stored somewhere, however; our webpage is stateless without this data. We can store our data in many ways or even discard it after use, but the most standard way is storing it in a database designed for the sole purpose of storing data in a reliable way, and present it if needed, as fast as possible.

In this tutorial we will build a simple webpage to record and display user data. We will use a PostgreSQL RDBMS as backend, and develop our application in PHP that will run on an Apache Webserver. This way we can access our web application from any common browser to view or add to our user database. It is the nature of the web application that many users/operators can work with it simultaneously, all they need is a browser and network access to our application.

In this tutorial you will learn:

  • How to install needed packages for PostgreSQL connection in PHP
  • How to create the database side of the application
  • How to code the example application
  • How to operate and verify the example application

Read more

Initializing and accessing PostgreSQL database on Red Hat Enterprise Linux 8

How to install PostgreSQL server on RHEL 8 / CentOS 8

PostgreSQL is an free-opensource object-relational database management system. The objective of this tutorial is to perform an installation and basic configuration of PostgreSQL server on RHEL 8 / CentOS 8 Linux server.

In this tutorial you will learn:

  • How to install PostgreSQL database server on RHEL 8 / CentOS 8
  • How to start and enable PostgreSQL database server
  • How to access PostgreSQL database from localhost and remote location
  • How to set password for the default postgres user
  • How to enable PostgreSQL to listen on all networks
  • How to secure PostgreSQL remote connection with MD5 password authentication
  • How to open PostgreSQL firewall port
  • How to establish remote connection to PostgreSQL server using psql client

Read more