Author Topic: PHP-FPM7.4 How can I set php.ini files per domain name  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP-FPM7.4 How can I set php.ini files per domain name
« on: July 28, 2021, 07:03:51 AM »
Hello,

I want to use php-fpm and to set a php.ini per each domain name (each php-fpm session to be served according to the ini file it has, per domain name).

Currently, even though the domains I have are running php-fpm, they all use the same configuration file loaded from
Code: [Select]
/opt/alt/php-fpm74/usr/php/php.ini

Considering I have different users using the domain names, sometimes several domain names per user, is it possible to serve PHP-FPM from individual ini files for each domain name and if so where/what should I set up?

Thank you!
« Last Edit: July 28, 2021, 07:06:39 AM by NIIcK »