Emergency server help: get in touch

Linux

Linux server scripts, tools and guides for AlmaLinux, Rocky Linux, Ubuntu and Debian: hardening, firewalls, databases, mail and monitoring.

225 guides, scripts and tools for Linux. Search them or pick a type. Press / to search.

225 pages

Multi-Server Health Check over SSH Pro

A multi-server health check that logs in to every server in a list over SSH, in parallel, and grades load, memory, disk, inodes, units, updates, clock and mail queue as OK, WARN or FAIL.

September 30, 2026

Server Inventory Report

A one-page server inventory report for Linux: OS, hardware, disks, IPs, control panel, web server, PHP, database and mail versions, firewall, backups, open ports and pending updates.

September 30, 2026

Restic Backup Script for Offsite Backups

A restic backup script for cron: dumps every MariaDB/MySQL database, backs up to any restic repository, applies daily/weekly/monthly retention, checks integrity and test-restores a random file.

September 30, 2026

MariaDB Slow Query Log Summary

Summarises the MariaDB slow query log without Percona tools: groups queries by fingerprint, ranks them by total time, count and rows examined, and prints the commands to turn logging on.

September 30, 2026

Disk and Inode Alert

A disk and inode alert for cron: checks every real filesystem for space and inode use, estimates days until full from growth between runs, and lists the largest directories when a threshold is crossed.

September 30, 2026

Access Log Top IPs and Bots Report

An access log top IPs report for Apache, LiteSpeed and Nginx: top IPs, agents, URLs, fake Googlebots, 404/5xx and wp-login or xmlrpc floods for the last minutes or hours, across all vhosts.

September 30, 2026

Redirect Chain Checker

A redirect chain checker for the command line: follows each URL hop by hop with curl and flags loops, chains longer than two, 302s, HTTPS downgrades, non-200 endings and inconsistent www/https variants.

September 30, 2026

PHP-FPM Slow Log Analyzer

Turns a PHP-FPM slow log into answers: slow requests grouped by script, stack frame, function and WordPress plugin, plus pm.max_children hits and timeouts per pool next to each pool's settings.

September 30, 2026

Server Security Audit Script

A read-only server security audit script for Linux: SSH, firewall, brute-force protection, updates, ports, sudo and filesystem checks as PASS/WARN lines. Checks it cannot run are SKIP, never PASS.

September 30, 2026

Backup Verify Script

A backup verify script that checks every account and database series: fresh, not shrinking, opens cleanly, and present for every expected account. Anything it cannot test is a failure.

September 30, 2026

AI Slow Query Advisor for MySQL and MariaDB

Paste a slow MySQL or MariaDB query, optionally with EXPLAIN output and SHOW CREATE TABLE, and get a diagnosis, exact index statements, a rewrite and how to verify the improvement.

September 30, 2026

AI fail2ban Regex Generator: Filters and Jails from Log Lines

Paste a few log lines you want to ban on and get a fail2ban filter with anchored failregex, a jail with maxretry, findtime and bantime, and the command to test it.

September 30, 2026

Free website test

Is your website set up right?

Check SSL, security headers, redirects, robots.txt, sitemap, llms.txt and security.txt in one test. It takes about 30 seconds.