Home >Backend Development >PHP Tutorial >Shallow CGI, FastCGI, PHP-CGI, PHP-FPM!

Shallow CGI, FastCGI, PHP-CGI, PHP-FPM!

青灯夜游
青灯夜游forward
2020-07-25 17:22:122504browse

Shallow CGI, FastCGI, PHP-CGI, PHP-FPM!

Understanding of CGI and FastCGI

  • CGI and FastCGI are both communication protocols , is a bridge for communication between web Sever (Apache/nginx/iis) and other programs (this program is usually called a CGI program, such as a PHP script parser)

  • FastCGI is an improvement of CGI Evolved version, FastCGI is safer and has better performance than CGI, so now FastCGI protocol is used for communication

  • FastCGI is compatible with CGI

PHP-CGI and PHP-FPM

  • ##PHP-CGI is actually a PHP script parser, it is the implementation of the CGI protocol

  • PHP-FPM is the implementation of the FastCGI protocol

  • PHP-CGI and PHP-FPM are both programs

Execution process of CGI and FastCGI

  • CGI

    Shallow CGI, FastCGI, PHP-CGI, PHP-FPM!

  • FastCGI

    Shallow CGI, FastCGI, PHP-CGI, PHP-FPM!

Recommended related tutorials: "

PHP Tutorial"

The above is the detailed content of Shallow CGI, FastCGI, PHP-CGI, PHP-FPM!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete