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

Redis is an in-memory data store commonly used for caching, session storage, message queues, and high-performance database operations. Many PHP applications such as WordPress, Laravel, Magento, and custom web applications use Redis to improve performance and reduce database load. This guide explains how to install and enable the Redis PHP… Continue Reading Enable redis module on php – nginx webserver

Varnish is a web application accelerator that can be used as a caching layer in front of a web server. In this setup, Varnish listens on port 80 and forwards requests to the backend web server. This guide explains how to configure Varnish with Nginx as the backend web server… Continue Reading Install Varnish on Ubuntu 16