You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per default, PHP scripts do get sent to php-fpm, but unfortunately they turn up unprocessed on the client-side. This behaviour is seen with Caddy, Apache2 and NGINX. The logs do show that php-fpm is processing the file - however, the PHP tags are shown raw on the client, indicating that the unprocessed output was sent.
Expected behavior:
I expected curl -v localhost to return a properly processed PHP output. Instead, it even asks me to append --output - to my command, as the data sent indicates that it is sent as binary, although Content-Type is set correctly.
UTF-16 LE was somehow applied to my file and completely not do-able by Docker. I probably didn't make the file with VSCode but on the command line. Be aware, this has only happened to me on Windows so far.
Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
Info:
$ docker --version
):Docker version 19.03.5, build 633a0ea
$ git rev-parse HEAD
):ad2b455be577669aa599f3511704565e6a806629
Issue:
Per default, PHP scripts do get sent to php-fpm, but unfortunately they turn up unprocessed on the client-side. This behaviour is seen with Caddy, Apache2 and NGINX. The logs do show that php-fpm is processing the file - however, the PHP tags are shown raw on the client, indicating that the unprocessed output was sent.
Expected behavior:
I expected
curl -v localhost
to return a properly processed PHP output. Instead, it even asks me to append--output -
to my command, as the data sent indicates that it is sent as binary, althoughContent-Type
is set correctly.Reproduce:
I changed the following in my
.env
:And then simply usd
docker-compose up nginx php-fpm mysql
. To test the other services, I replaced nginx with either apache2 or caddy.Relevant Code:
I tried to display this file with the name
index.php
:The text was updated successfully, but these errors were encountered: