In php-fpm, how does one configure to support two php. ini files?

Source: Internet
Author: User
Scenario: In the same parent directory of yaf, two projects support one namespace and one does not. However, when a php. iniyaf. use_namespace0PHP_INI_SYSTEM is enabled, Yaf registers its own class using the namespace method. For example, Yaf_Application will become Ya... scenario:
YafIn the same parent directory, two projects support one namespace and one does not.

HoweverPhp. ini

When yaf. use_namespace 0 PHP_INI_SYSTEM is enabled, Yaf registers its own class using the namespace method. For example, Yaf_Application will become Yaf \ Application.

Is it to enable two fpm and load different ini at startup?
Or can I configure it in fpm-conf?
Thank you ~

Reply content:

Scenario:
YafIn the same parent directory, two projects support one namespace and one does not.

HoweverPhp. ini

When yaf. use_namespace 0 PHP_INI_SYSTEM is enabled, Yaf registers its own class using the namespace method. For example, Yaf_Application will become Yaf \ Application.

Is it to enable two fpm and load different ini at startup?
Or can I configure it in fpm-conf?
Thank you ~

Two methods,
1. Use ini_set to change the namespance value at the program entry.
2. Start two php-fpm instances.-CThe parameter specifies the php. ini to load,-YThe parameter specifies the php-fpm.conf to enable different listening ports in either of the two methods you are talking about.

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.