Introduction One of the most common challenges when deploying applications behind a load balancer is enforcing HTTPS redirection. In many environments, SSL/TLS termination happens at the load balancer level, and requests are forwarded to backend Nginx servers over HTTP. In this scenario, traditional HTTP-to-HTTPS redirection methods may fail or create… Continue Reading Redirect http to https on nginx behind load balancers

Introduction When starting or restarting the network service on a Linux VM, you may encounter the following error: This issue commonly occurs when the network interface configuration does not match the network adapter available on the VM. It can happen after changing the VM’s network adapter or when the configured… Continue Reading How to Fix “Device eth0 Does Not Seem to Be Present” Error in Linux?

NFS (Network File System) allows files and directories to be shared and mounted between Linux servers over a network. In this guide, we will configure one Ubuntu server as an NFS server and mount the shared directory on another Ubuntu client server. Introduction NFS is commonly used to share directories… Continue Reading Set up NFS server and configure NFS mount point on Ubuntu

Introduction HAProxy is a popular open-source load balancer and proxy server. It can be used to forward incoming requests to backend servers and distribute traffic across multiple servers. In this article, we will explain how to install HAProxy on an Ubuntu server and configure it to forward requests from port… Continue Reading How to Install and Configure HAProxy on Ubuntu

Introduction Dynamic input fields allow users to add or remove multiple file inputs on a web page without refreshing the page. In this tutorial, we will implement a simple multiple-file upload form using HTML, PHP, JavaScript, and jQuery. When a user selects a file, a new file input is automatically… Continue Reading Add and remove dynamic input elements

Introduction This guide explains how to use PHP to compress an entire directory into a ZIP file and automatically download the generated ZIP file through the browser. This is useful when users need to download multiple files or folders as a single archive. Prerequisites Before implementing this functionality, ensure the… Continue Reading Php zip a directory and automatically download

Introduction Email deliverability is one of the major challenges when setting up a new mail server. Emails sent from an untrusted or unauthenticated mail server may be delivered to spam folders or rejected by popular email providers. DomainKeys Identified Mail (DKIM) is an email authentication mechanism that allows an outgoing… Continue Reading DKIM Setup on Postfix Mail Server Using OpenDKIM – CentOS 6/7

Introduction MySQL provides the FIND_IN_SET() function to search for a value within a comma-separated list. For example: This works when searching for a single value. However, if we want to search for multiple values at the same time, FIND_IN_SET() cannot directly handle the search in the following format: One way… Continue Reading MySQL: Search Multiple Values Without Using FIND_IN_SET()

Introduction inyMCE is a powerful and flexible Rich Text Editor (RTE) that allows users to create and format content directly within a web application. It provides a familiar editing experience with features such as text formatting, lists, links, images, tables, and other content-editing options. In this tutorial, we will learn… Continue Reading Dynamic textarea with TinyMce editor

When users update their profile information, it is important to ensure that certain fields, such as mobile numbers, remain unique across all user accounts. This article explains how to prevent users from updating their profile with a mobile number that is already assigned to another account. Scenario Assume you have… Continue Reading how to avoid inserting duplicate row in php while update user profile