Assuming that there are 6 subdomains under Nginx, does that mean I have to open 6 phpcgi process pools? Like 127.0.0.1:9005.
Reply content:
Assuming that there are 6 subdomains under Nginx, does that mean I have to open 6 phpcgi process pools? Like 127.0.0.1:9005.
Use PHP-FPM to manage our PHP parser process, configure the words in the fpm/pool/www.conf configuration
Please use PHP-FPM FastCGI process Manager
Ability to open and manage multiple processes
can also manage the processing time of each process, processing times, dynamic increase and decrease process, etc.
Conclusion: No
PHPCGI is a PHP virtual machine, he will be based on the CGI protocol data sent over the dynamic loading of PHP code, different domain names may point to the PHP execution code is not the same, but it is not necessary to open multiple CGI pool distinguish. Of course it is perfectly possible to open more than one.