> The answer is that CGI protocol is simpler to implement. And generally speaking, the first step is not necessarily HTTP. Thanks Andrey for that context. This makes sense and what I was initial curious about. However, as mentioned in a different message:
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. If PHP-FPM would speak HTTP, then you could still run Nginx and PHP, but other than being able to communicate via tcp there would be zero dependency between them. 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... Cheers, Gunter |