Running multiple PHP versions on the same server can be a pain, and not the best security-wise.
I was pondering on containerizing the thing and decided to try running each PHP into its own PHP-FPM container, while using Apache on the host for ease of use.
It turns out it’s pretty simple, with a few gotchas.
I put everything into a Github project so I can share it to the world. But most importantly, so I don’t forget how it works 6 months from now.