What is fastcgi, php-fpm?

Source: Internet
Author: User

CGI,FASTCGI is a set of interface standards, is a programming language (such as Php,python; Python also has WSGI) and Web server (such as NGINX) communication standards (such as you with foreigners, then fastcgi is equivalent to English);

PHP-FPM is the FASTCGI process Manager

FastCGI is a traditional CGI developed from the traditional CGI, the performance is poor, because every time the HTTP server encounters a dynamic program will need to restart the script parser to perform the parsing, and then return the results to the HTTP server.

FASTCGI uses the C/s structure, you can separate the HTTP server and the script parser on different servers, fastcgi start multiple daemons, the Web server and FASTCG through the socket communication, such as the PHP-FPM configuration of Port 9000.

When Nginx accepts a request, the request is forwarded to PHP-FPM,PHP-FPM after the request is received, a new thread is derived, which invokes the PHP interpreter (php-cgi) to process the script and return the data.

What is fastcgi, php-fpm?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.