fastcgi principle and implementation case of PHP service

Source: Internet
Author: User

Source: CGI handles a Web server's dynamic request, and each time it has to fork a new process to process it, and for a highly concurrent web environment it is not appropriate to have a built-in PHP interpreter for the Fastcgi;web server that exists in the Web server in a modular way. Starts as the Web server starts

Introduction: Scalable, high-speed interface for communication between HTTP servers and dynamic scripting languages, implemented as sockets under Linux, with a listening port of 9000

Architecture: C/S architecture, HTTP server and PHP interpreter;

Client: HTTP server side with Nginx as an example, the configuration parameter is Fastcgi_pass;

Server side: PHP-FPM

Operating principle:

Nginx Connection php:

PHP Connection Mysql:php.ini configuration file (slightly)

fastcgi principle and implementation case of PHP service

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.