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.

Asterisk Recordings to MP3: Bulk Convert FreePBX Call Recordings

Converts Asterisk, FreePBX and Issabel call recordings (WAV, WAV49, GSM, µ-law, SLN) to small mono MP3 files from cron, verifies each file and keeps the FreePBX call log player working.

October 3, 2026

Server hacked: incident response runbook for Linux and cPanel Pro

An incident response runbook for a hacked Linux or cPanel server: contain it, preserve evidence, find the entry point, decide clean or rebuild, rotate credentials in the right order and tell customers.

September 30, 2026

MySQL/MariaDB won’t start: crash recovery runbook Pro

When MariaDB won't start after a crash, this runbook reads the error log first, matches the common causes, walks innodb_force_recovery levels 1 to 6 safely, and rebuilds from a dump on cPanel and DirectAdmin.

September 30, 2026

Disk full on a production server: recovery runbook Pro

A recovery runbook for a disk full on a production server: safe space to free first, inode exhaustion, what never to delete, and how to bring MySQL, Exim and Dovecot back cleanly after ENOSPC.

September 30, 2026

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

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.