4 ms·
You can set PHP_CLI_SERVER_WORKERS to make it run multiple threads.
by PetahNZ 2y ago
You can set PHP_CLI_SERVER_WORKERS to make it run multiple threads.
- sandreas 2y agoNEAT, didn't know that. Would still not use it in production :)
- pierstoval 2y agoFrankenPHP is just Caddy + PHP, but in one binary. The threads thing, the worker mode, etc., all of it is optional, but basic Caddy + PHP is already production-ready, I've been using this kind of setup for a while, and switching to FrankenPHP when you already have Caddy is completely harmless. The only thing FrankenPHP does not is providing multiple versions of PHP in the same binary. For that, I'd still use Caddy + PHP-FPM, and it's fine.