Nginx-How to configure multiple php-cgi process pools

Source: Internet
Author: User
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.

  • 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.