Topic: Different php.ini for cli and fpm

Hi all,

Is it possible to have two different php.ini's -- one for cli and another for fpm? How would I do this?

I'm guessing the proper way is to override the php.ini location in FPM's pool config?

Re: Different php.ini for cli and fpm

For FPM, simply put the configuration directives in pool configuration file

For CLI, you can use the php-cli.ini

Else you can also use the PHPRC environment to set ini path

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi