Php guides
Hands-on guides that cover Php. Every command is run and verified on a live server before it is published.
GuideInstall PHP-FPM and Serve a Page Through nginx
See the destination first, then install php-fpm on a bare Ubuntu 24.04 slice, point nginx at the fpm socket, and serve a PHP page that executes.
GuideFPM Pools and the Process Manager
Build a dedicated php-fpm pool that runs as its own user, size the worker count from the memory on the box, and read the live pool status through nginx.
GuideA PHP App Behind nginx
Put a multi-file PHP app behind nginx with a front controller and a SQLite query, then lock the FastCGI config so the runtime never runs an arbitrary path.
GuideOPcache and PHP Performance
Tune PHP OPcache with a drop-in, read its near-perfect hit rate through a status page, and measure a repeated request with the bytecode cache on and off.
GuideServe PHP with Caddy and php-fpm
Serve PHP with Caddy by wiring php_fastcgi to php-fpm on Ubuntu 24.04, then watch a dynamic page execute over HTTPS through a single directive.
GuidePHP-FPM Security and Hardening
Set the php-fpm security baseline: hide the version, disable shell functions, fence files with open_basedir, and log errors instead of leaking them.