Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

How to Fix 502 Bad Gateway on Nginx: A Log-First Debugging Guide (2026)

Illustration of a server with a broken connection: 502 bad gateway nginx error

Your site was fine ten minutes ago. Now every page returns 502 Bad Gateway and your heart rate is doing the same thing as your error log. Take a breath: a 502 Bad Gateway on Nginx is one of the most debuggable errors in all of server land, because the error message is telling you … Read more

Laravel Octane vs PHP-FPM: When to Switch (2026)

Laravel Octane vs PHP-FPM performance comparison

If you run a Laravel application in production, there’s a good chance it’s running on PHP-FPM right now. That’s the default, and for a lot of apps it’s the right call. But at some point you start wondering: is my app slow because of my code, or because PHP is booting the entire framework on … Read more