Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Jafo232's avatar

Disable Output Buffering In Vapor (Docker)

I am streaming back text from an AI application and in other environments, this isn't a problem, but when I deploy into vapor, streaming stops working.

In other environments, I have had to set "FcgidOutputBufferSize 0" in the fastCGI config to make it work, but I see no real way to do this in Vapor. I can set php.ini settings just fine as prescribed here: https://docs.vapor.build/projects/environments.html#docker-runtimes

But cannot figure out how to do the same with fast-cgi settings?

0 likes
1 reply

Please or to participate in this conversation.