Empty response when using FrankenPHP with worker mode in Docker #1609
-
|
Hi, I'm currently trying to upgrade an existing native PHP project to use FrankenPHP. Everything works fine when using the static binaries, but when I try to run it with Docker, the server returns an empty response (no output at all). I've followed the official documentation examples, even with the worker script provided, but I still get the same result. So I suspect there might be something wrong with my Docker container setup. Is there any additional configuration required that's not mentioned in the documentation? Here’s the sample PHP code I’m testing with: And this is the Docker command I’m using to run it: Any help would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
|
Have you installed any needed extensions? The dockerized version comes with almost no extensions and you'll need to install them. FrankenPHP comes with https://github.com/mlocati/docker-php-extension-installer installed. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, I just saw your example script. Did you set the worker stanza in the caddyfile? https://frankenphp.dev/docs/config/#caddyfile-config |
Beta Was this translation helpful? Give feedback.


You might also need to set
when only using http locally within docker.