-
Hey there! Frankenphp has improved so much, this looks great! I have a few questions, I wasn't sure about them when looking at the docs!
Really digging it! |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 17 replies
-
A FrankenPHP binary will, however, fit in nicely with a preexisting systemd, caddy user and group, and /etc/caddy/Caddyfile as a completely compatible drop in replacement for caddy on many systems with just a couple lines edited (or, as I did, copying caddy.service to frankenphp.service and editing it to point to the new binary). |
Beta Was this translation helpful? Give feedback.
-
Hi @fideloper, Thanks for the kind words, it means a lot!
Laravel is indeed entirely supported. Worker mode/Octane is entirely optional.
FrankenPHP is made of several components:
TL;DR: we choose to ship Caddy by default instead of just the built-in Go web server because it adds a lot of cool features, but it's totally possible to build a "minimal" server not using Caddy. We even have one in our test suite: https://github.com/dunglas/frankenphp/blob/main/internal/testserver/main.go
Do you have a link to the hooks provided by RoadRunner? What do you mean by "GRPC support", I'm not very familiar with grpc in PHP, but isn't the official grpc extension enough? We provide some extension points that should be enough for some use cases (https://pkg.go.dev/github.com/dunglas/frankenphp#pkg-overview) but we would be happy to add more if needed! |
Beta Was this translation helpful? Give feedback.
-
@dunglas I am building a very big system which i need nginx as a front, i have made config as laravel document Here is franken json for worker mode
Here is franken.services defination on systemd
franken works very well without worker mode but when worker mode is enabled, it could not resolve laravel redirect correctly (laravel use redirect() method). As i understand, laravel redirect route is not resolve correctly (nginx or franken does has misconfigure) or Auth is not processed correctly on franken. |
Beta Was this translation helpful? Give feedback.
-
@dunglas Can you help to explain 2 of these?What is "caddy run"? is it created as a must? |
Beta Was this translation helpful? Give feedback.
-
frankenphp is set to run with root user, by the way, it can not run "get_current_user() ", is there any related issue which laravel app is loaded on memory and when run by franken, some method can not be exucuted? Below is laravel's "config/logging.php"
|
Beta Was this translation helpful? Give feedback.
-
@fideloper cc @dunglas
my server run on t4g.small (amazon linux 20223 arm64) which has 2G memory, is there any problem with this low specs? I am very appreciated with your answer, hope to have your answers soon |
Beta Was this translation helpful? Give feedback.
-
@dunglas @fideloper I tried lots of different server's specs. With same php process, franken used of one of CPU cores and gave the "systemd-coredump[2647]: Process 2416 (frankenphp) of user 0 dumped core." error as my last comment above this problem did not happen with php-fpm As above comment, i am comparing btw nginx+php-fpm and nginx+frankenphp I hope we can have some deeper discussion. |
Beta Was this translation helpful? Give feedback.
Hi @fideloper,
Thanks for the kind words, it means a lot!
Laravel is indeed entirely supported. Worker mode/Octane is entirely optional.
(Octane integration is almost done, but not merged yet: laravel/octane#764)
FrankenPHP is made of several …