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

Desktop: Fedora 33 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 34 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi