-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive session fails to start when running php-fpm in foreground #440
Comments
Yeah, even running in the foreground like this, rather than a daemon, php-fpm isn't running the actual PHP process. It's a process manager running a pool of processes. In order to work interactively, psysh must be the active process, or must be run by a process that pipes stdin and stdout to and from psysh. php-fpm doesn't do that, apache doesn't do that, and nginx doesn't do that, even if you're running them in the foreground. |
The documentation has been updated to include PHP-FPM :) |
Sounds good, @bobthecow! Can you please give a link? |
I just updated the "Usage" section to include PHP-FPM as "unsupported":
|
Okay, now it's clear. |
I use docker to run nginx, mysql and php-fpm all in separate containers. And I start php-fpm container not with
php-fpm
command, but withsleep 1000000
, then log in into that container and runphp-fpm
interactively. Unfortunately, it fails start interactive session:I wonder if it's possible to use php-fpm to debug interactively this way. I see that readme says apache/nginx is not supported, but it's not remote debugging.
If it's not possible by now, I guess it makes sense to mention in the readme that starting php-fpm in foreground also won't let you debug.
The text was updated successfully, but these errors were encountered: