Re: Why FastCGI?

[email protected] (Andrey Repin)
Newsgroups php.general
Message-ID <[email protected]>
Greetings, Gunter Grodotzki.
In reply to Your message dated Thursday, March 25, 2021, 14:26:38,

> Maybe just a thought.. I think there would be great benefit for users,
> especially those running PHP in Docker. One current drawback, in the way how
> FCGI works/is implemented with PHP, you need to have a shared volume between
> Nginx and PHP.

Eh, why? If you do not upload files, you don't need a shared volume.

> If PHP-FPM would speak HTTP, then you could still run Nginx and PHP,

And will still need shared volume in same cases you would for CGI link.

> but other than being able to communicate via tcp there would be zero dependency
> between them.

Er, I use TCP for my PHP FPM. For years.

> This is also what is currently causing bad practices in Docker, where PHP
> is being shipped with Apache to avoid shared volumes, when Docker containers
> should really only be running a single process...

That says so much about people building these containers…


-- 
Sincerely Yours, Andrey Repin <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.