1. Advantages: independent process pool to run, support distributed computing, and separation of dynamic logic.
From the perspective of stability, FastCGI mode uses an independent process pool to run CGI protocol programs. If a single process dies, the system can easily discard it and then reassign a new process to run the logic;
From a security perspective, FastCGI mode supports distributed computing. The FastCGI program is completely independent from the host server, and the server will not be affected if the FastCGI program hangs;
From a performance point of view, FastCGI mode separates the processing of dynamic logic from the server. The heavy-load IO processing is still left to the host server, so that the host server can process IO wholeheartedly. For an ordinary dynamic web page, the logic processing may only be A small part, a large number are static images and so on.
2. Disadvantages: There is only one available php.ini file for all subdirectories, and environment upgrades are delayed.
You have only one php.ini file available for all subdirectories (/home/USERNAME/public_html/php.ini). This is necessary to optimize your website code. If you need multiple php.ini files to accommodate different scripting needs, you can disable PHP's fast CGI in any subdirectory and leave it active elsewhere. Please contact support if you need to do this.
Any upgrades you make to your PHP environment (such as changes to the php.ini file) will have a delay of several minutes. This is because your php.ini file has been loaded into memory for faster speed, rather than being re-read from memory each time it is needed.
The above are the advantages and disadvantages of php FastCGI mode. I hope it will be helpful to everyone.