Running PHP-FPM in a Docker container with Apache on the host

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.

The github project – LouWii/apache-on-host-php-fpm-container

I was a bit afraid to continue using it, so I’ve decided to retire it. I couldn’t just throw it away though. It now has its own space on a shelf. Thanks for your service, little HDD. https://t.co/H6PrDFMXRc



from Twitter https://twitter.com/LouWii59

October 23, 2021 at 08:19PM
via IFTTT

I’ve recently realized that I had my external HDD for quite a while. Then I checked its data. It’s been powered on for more than 47 THOUSANDS hours. More than 5 years. Continuously. And it’s still running fine. https://t.co/rrk2MGW5d3



from Twitter https://twitter.com/LouWii59

October 23, 2021 at 08:14PM
via IFTTT

The new UI for @ProtonMail is really nice! I love it! For anyone curious: https://t.co/yzuYc3RLV5 Open source and respecting your privacy, the right way to do things 🤘



from Twitter https://twitter.com/LouWii59

June 08, 2021 at 08:46PM
via IFTTT

Recently upgraded my TV to a 4k HDR. I found nice 4k HDR demo videos here https://t.co/hEetcXhkas but I’m not quite blown away yet. Next step: finding good HDR movies.



from Twitter https://twitter.com/LouWii59

June 05, 2021 at 01:31AM
via IFTTT

The Instagram ads Facebook won’t show you https://t.co/WPf6dxOmhr I love this, I think if would have made a significant impact, too bad Facebook caught it. #privacy



from Twitter https://twitter.com/LouWii59

May 06, 2021 at 10:31PM
via IFTTT

Call on your MP to vote against @s_guilbeault’s Bill C-10: the most serious attack on freedom of expression online in Canada we’ve seen in years and a genuine Internet emergency! https://t.co/2pA6fdDng7 #NoBillC10 Laws like these are too broad and too dangerous.



from Twitter https://twitter.com/LouWii59

May 04, 2021 at 09:11PM
via IFTTT

RT @lassoued_samir: 100 milliards d’euros de fraude fiscale, mais le problème c’est les 560 euros de RSA que touche votre voisin. https://t.co/H9VTrTrhUg



from Twitter https://twitter.com/LouWii59

March 26, 2021 at 03:02AM
via IFTTT