Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Server Setup Guides

Install HAProxy on RHEL 9

Install HAProxy on RHEL 9

Step 1 – Install

dnf install -y haproxy
systemctl enable --now haproxy

Step 2 – Basic /etc/haproxy/haproxy.cfg

global
    log /dev/log local0
    chroot /var/lib/haproxy
    stats socket /run/haproxy/admin.sock mode 660 level admin
    user haproxy
    group haprox...
7th May 2026

Install MariaDB on RHEL 9

Install MariaDB on RHEL 9

Step 1 – Install and secure

dnf install -y mariadb-server
systemctl enable --now mariadb
mysql_secure_installation

Step 2 – Create database and user

CREATE DATABASE appdb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'appuser'@'localhost' IDENTIFIED...
7th May 2026

Install MySQL on RHEL 9

Install MySQL on RHEL 9

Step 1 – Install and secure

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install -y mysql-server
systemctl enable --now mysqld
mysql_secure_installation

Step 2 – Connect

mysql -u root -p

Step 3 – Create database and user

CREATE...
7th May 2026

Install Nginx on RHEL 9

Install Nginx on RHEL 9

Step 1 – Update and enable EPEL

dnf update -y
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms

Step 2 – Install Nginx

dnf install -y nginx

Step 3 – Enable and start

systemctl enable --now nginx

Step 4 – Firewall

firewall-cmd --perm...
7th May 2026

Install Node.js on RHEL 9

Install Node.js on RHEL 9

Step 1 – Install

curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
dnf install -y nodejs

Step 2 – Verify

node --version && npm --version

Step 3 – Simple HTTP server

// app.js
const http = require('http');
http.createServer((req, res) => {
  res.writeHead...
7th May 2026

Install PHP-FPM on RHEL 9

Install PHP-FPM on RHEL 9

Step 1 – Install

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install -y php php-fpm php-cli php-opcache php-mysqlnd php-mbstring php-xml php-gd
systemctl enable --now php-fpm

Step 2 – Verify

php --version
php-fpm -v 2>/dev/null...
7th May 2026

Install PostgreSQL on RHEL 9

Install PostgreSQL on RHEL 9

Step 1 – Install

dnf install -y postgresql-server postgresql-contrib
postgresql-setup --initdb
systemctl enable --now postgresql

Step 2 – Connect as superuser

sudo -u postgres psql

Step 3 – Create database and user

CREATE USER appuser WITH PASSWORD 'StrongPas...
7th May 2026

Install Prometheus on RHEL 9

Install Prometheus on RHEL 9

Step 1 – Install

VERSION=2.51.2
wget https://github.com/prometheus/prometheus/releases/download/v${VERSION}/prometheus-${VERSION}.linux-amd64.tar.gz
tar xvf prometheus-${VERSION}.linux-amd64.tar.gz
cp prometheus-${VERSION}.linux-amd64/prometheus /usr/local/bin/
cp pr...
7th May 2026

Install Redis on RHEL 9

Install Redis on RHEL 9

Step 1 – Install

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install -y redis
systemctl enable --now redis

Step 2 – Verify

redis-cli ping   # PONG

Step 3 – Bind and password (/etc/redis/redis.conf)

bind 127.0.0.1 ::1
require...
7th May 2026

Install Varnish Cache on RHEL 9

Install Varnish Cache on RHEL 9

Step 1 – Install

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
dnf install -y varnish
systemctl enable --now varnish

Step 2 – Basic /etc/varnish/default.vcl

vcl 4.1;

backend default {
    .host = "127.0.0.1";
    .port = "8080...
7th May 2026

MySQL Backup and Restore on RHEL 9

MySQL Backup and Restore on RHEL 9

mysqldump

# Single database
mysqldump -u root -p appdb > /backups/appdb_$(date +%F).sql

# All databases
mysqldump -u root -p --all-databases > /backups/all_$(date +%F).sql

# Compressed
mysqldump -u root -p appdb | gzip > /backups/appdb_$(date +%F).sql.gz

Re

...
7th May 2026

Nginx Load Balancing on RHEL 9

Nginx Load Balancing on RHEL 9

Round-robin (default)

upstream myapp {
    server 192.168.1.10:8080;
    server 192.168.1.11:8080;
    server 192.168.1.12:8080;
}
server {
    listen 80;
    server_name lb.example.com;
    location / { proxy_pass http://myapp; }
}

Least connections

upstream m...
7th May 2026