PHP-FPM How to configure support for two php.ini files?

Source: Internet
Author: User
Scene:
yafIn the second half of the directory, two items one support namespace, one not supported.

However using aphp.ini

Yaf.use_namespace 0 Php_ini_system is turned on, YAF will register his class using a namespace, such as Yaf_application will become yaf\application

is open two fpm, start time load different ini?
Or in the fpm-conf, can be configured under?
Thank you first.

Reply content:

Scene:
yafIn the second half of the directory, two items one support namespace, one not supported.

However using aphp.ini

Yaf.use_namespace 0 Php_ini_system is turned on, YAF will register his class using a namespace, such as Yaf_application will become yaf\application

is open two fpm, start time load different ini?
Or in the fpm-conf, can be configured under?
Thank you first.

2 different ways,
1, change the value of Namespance with Ini_set at the program entrance
2, start 2 php-fpm, use -c parameters to specify the php.ini to be loaded, -y parameters specify php-fpm.conf, enable different listening ports, is the 2 way you say.

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