Hi,
I'm trying to understand how php-fpm works, aka how does nginx
"forward" the request to it.
Now I want an example program that do it or the document that explains it.
Anyone know where to get those?
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
I also want to know about the "fastcgi_param" part, thanks!
Hi,
I'm trying to understand how php-fpm works, aka how does nginx
"forward" the request to it.Now I want an example program that do it or the document that explains it.
Anyone know where to get those?--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Hello Aaron,
you might look at:
https://github.com/adoy/PHP-FastCGI-Client/blob/master/src/Adoy/FastCGI/Client.php
see buildNvpair() and buildPacket().
and the specification:
http://www.fastcgi.com/devkit/doc/fcgi-spec.html
Regards,
Thomas
Aaron Lewis wrote on 09.08.2014 06:43:
Hi,
I'm trying to understand how php-fpm works, aka how does nginx
"forward" the request to it.Now I want an example program that do it or the document that explains it.
Anyone know where to get those?--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Hi,
I'm trying to understand how php-fpm works, aka how does nginx
"forward" the request to it.Now I want an example program that do it or the document that explains it.
Anyone know where to get those?
Hey,
This is all about the FastCGI protocol.
You should read its spec, then read FPM and Nginx source code to understand it.
This is not a hard protocol though.
Julien.Pauli