ubuntips
README.md

Ubuntu Tips

Practical notes on provisioning, tuning and hardening Ubuntu servers.

This site collects the parts of running Ubuntu servers that are easy to get subtly wrong: tuning values that only matter under load, hardening steps that are worth doing once, and the occasional script that saves an afternoon.

15 posts so far. Everything is Markdown in a git repository.

New here? Start with the setup-script guide or why this site is static.

Latest posts 15 total

Pinned: One idempotent script for the whole Ubuntu web stack

posted Nov 18, 2026 · 15 min read

Angie, PHP-FPM, MariaDB, Valkey and Elasticsearch from a single Bash entry point: every command, option and safety rule in one place.

Three php-fpm builds side by side: Sury, clang + BOLT, and everything from source

posted Nov 24, 2026 · 7 min read

My earlier compiled-PHP tests found nothing. Two flaws in my build harness were hiding the gain: GCC was built without its global registers, and BOLT was never tried. With both fixed, a BOLT-optimised php-fpm is 5-10 % faster on logged-in XenForo pages. Building every library from upstream as well added nothing measurable.

OpenLiteSpeed and LSCache against Angie for a large XenForo forum

posted Nov 24, 2026 · 8 min read

A four-way shootout on a seeded XenForo forum: Angie with PHP-FPM and its FastCGI cache, the same with a clang-built PHP, and OpenLiteSpeed with LSAPI and the official LiteSpeed Cache add-on. Angie serves cached guests 16-23 % faster, members are a tie, and the add-on's documented setup shows logged-in members the guest page.

clang, PHP 8.4 and the missing zlib: the last round of compiled PHP

posted Nov 23, 2026 · 6 min read

The final round of the compiled-PHP question: CentminMod's function alignment on its own, a clang build and PHP 8.4, with every module compiled from source. clang is the only build with a repeatable edge (+3 % on XenForo), 8.4 is slower than 8.5, and my earlier source builds were missing zlib.

Everything on: LTO, PGO and -march=native made PHP 8.5 slower

posted Nov 23, 2026 · 7 min read

A follow-up to the four-build PHP test: turn on every CentminMod compiler option, add LTO and two-stage PGO trained on real XenForo traffic, and compile every module from source. The result is 5 to 10 % slower than the distribution package, not faster.

All posts →