frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

How would you replace a PHP-FPM environment with FrankenPHP

Open monkburger opened this issue 1 year ago • 1 comments

We're looking at using FrankenPHP as a replacement for FPM, mostly because of performance. We have a traditional setup (eg: Apache or Nginx talking to FPM over a UDS).

How does FrankenPHP work in this context? It seems to have no idea about UIDs in the config (I could be mistaken)

If this has been covered elsewhere, I do apologize in advance, but I did not see anything specific (outside of https://github.com/dunglas/frankenphp/issues/583)

One possibility is we would have to configure FrankenPHP as a reverse proxy from behind x/y/z, and only handle PHP files. But I really don't want to run PHP executing daemons as root.

monkburger avatar Mar 01 '24 15:03 monkburger

I really don't want to run PHP executing daemons as root.

You don't have to run it as root, but if you want to bind to a privileged port, you will need to give it permission to do so (see https://frankenphp.dev/docs/docker/#running-as-a-non-root-user) -- as well as giving it permissions to whatever files it needs access to.

#583 is more of a multitenant setup in the same process vs. non-root.

withinboredom avatar Mar 01 '24 15:03 withinboredom