PHP, as a hypertext preprocessing language, is equivalent to some logical processing before Apache returns the response result. PHP is responsible for the logical processing of the language, PHP as a module of Apache, the life cycle is dependent on the operation of Apache.
Unlike Apache, which starts PHP parsing PHP scripts, the benefit of opening fastcgi,fastcgi is to separate PHP from the server instead of PHP as a module. FastCGI a communication interface that interacts with the server for PHP. "Unlike CGI, each time a script will open the script interpreter, fastcgi use, separate the server from PHP, but the high-speed communication interface to ensure communication between the two (CGI), fastcgi will turn on the script interpreter protection process, so long as the script tag encountered, The server simply gives the script to the interpreter, which shortens the time to open the script interpreter "http://www.thinkphp.cn/topic/13082.html" which is a mechanism issue for PHP execution "This also solves the P An issue in which the HP code can perform normally in the case of HTML annotations. Although this is not a problem in itself "in addition to this problem, there are also related to virtual host configuration issues." "Resolves a server's problem with file handling permissions: In several cases"
Learn from scratch: PHP execution mechanism issues