Skip to content

Servers

Linux server administration for hosting: memory, CPU and disk diagnostics, Nginx, PHP-FPM, databases and capacity planning.

22 articles

Servers

How to Tune Nginx for a High-Traffic Website

Tune Nginx in the order that matters: measure first, raise the connection and file limits, reuse backend connections, cache repeat responses and limit abuse without blocking real visitors.

Updated 8 min read
Servers

How to Tune MariaDB for High Performance

Tune MariaDB on a dedicated server: measure first, size the InnoDB buffer pool, match I/O to NVMe, cap connections, keep durability safe and fix the slow queries with indexes.

9 min read
Servers

How to Fix 502 Bad Gateway on Nginx

A 502 from Nginx means the program behind it did not answer. The last line of the error log says how it failed, and each message has one fix.

8 min read
Servers

How to Add Swap Space on an Ubuntu VPS

Add a swap file on an Ubuntu VPS in five commands: choose the size, make it permanent in fstab, set swappiness to 10 and check it is not overused.

6 min read
Servers

How to Recover a Locked-Out Server With IPMI

Get back into a dedicated server after a firewall, SSH or network mistake using the IPMI console: five causes, the fix for each, and a password reset.

Updated 8 min read
Servers

How to Monitor VPS Bandwidth With vnStat

Install vnStat, read monthly and daily totals, get a warning at 80% of your traffic allowance, and find which files and visitors use the most.

Updated 7 min read
Servers

How to Back Up MariaDB and PostgreSQL on a VPS

A nightly script that dumps every MariaDB, MySQL and PostgreSQL database to its own file, keeps 14 days and checks each one, plus how to restore.

Updated 8 min read