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

Server Setup Guides

Pagespeed module setup on debian

Install

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
sudo dpkg -i mod-pagespeed-*.deb && apt-get -f install
service apache2 restart or /etc/init.d/apache2 restart

The primary configuration file is pagespeed.conf. This file is located at:

/etc/apache...
20th Jan 2019

PHP-FPM Multiple Pools on Debian 12

PHP-FPM Multiple Pools on Debian 12

Pool directory: /etc/php/8.2/fpm/pool.d/

Create /etc/php/8.2/fpm/pool.d/site1.conf

[site1]
user  = site1
group = site1
listen = /run/php-fpm/site1.sock
listen.owner = www-data
listen.group = www-data
listen.mode  = 0660
pm = dynamic
pm.max_children      =...
7th May 2026

Redis Cluster on Debian 12

Redis Cluster on Debian 12

Minimum 3 primaries + 3 replicas (6 nodes). This example uses ports 7000-7005 on localhost.

Step 1 – Create node configs

for port in 7000 7001 7002 7003 7004 7005; do
    mkdir -p /etc/redis/cluster/$port /var/lib/redis/$port
    cat > /etc/redis/cluster/$port/redis....
7th May 2026

Redis Sentinel (HA) on Debian 12

Redis Sentinel (HA) on Debian 12

Architecture

  • Primary 192.168.1.10:6379
  • Replica 192.168.1.11:6379, 192.168.1.12:6379
  • Sentinels on port 26379 (all 3 nodes)

Primary redis.conf

bind 0.0.0.0
requirepass RedisPass!

Replica redis.conf

bind 0.0.0.0
requirepass RedisPass!
replicaof 192...
7th May 2026

Secure MySQL on Debian 12

Secure MySQL on Debian 12

Step 1 – Run mysql_secure_installation

mysql_secure_installation

Set root password, remove anonymous users, disallow remote root login, remove test DB.

Step 2 – Bind to localhost

[mysqld]
bind-address = 127.0.0.1

Step 3 – Audit users

SELECT User, Host, plugin...
7th May 2026

Sensu monitoring software on debian

Install Erlang

sudo wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get -y install erlang-nox

Install RabittMQ

sudo wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.0/rabbitmq-server_3.6.0-1...
20th Jan 2019

SSH TOTP MFA on Debian 12

SSH TOTP MFA on Debian 12

Step 1 – Install PAM module

apt install -y libpam-google-authenticator

Step 2 – Configure for each user

google-authenticator
# time-based: y, update file: y, disallow reuse: y, rate limit: y

Scan QR code with an authenticator app (Aegis, Google Authenticator, etc....

7th May 2026

Tune PHP OPcache on Debian 12

Tune PHP OPcache on Debian 12

Edit /etc/php/8.2/fpm/conf.d/10-opcache.ini

opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.revalidate_freq=60
opcache.validate_timestamps=1
; JIT (PHP 8.x)
opcache....
7th May 2026