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 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 28 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test