How do you configure the command line version of PHP to have different settings on a Redhat system?
On Debian based systems, php has a separate command-line version config file: /etc/php5/cli
.
On Redhat, there's /etc/php.ini
and various additional ini files in /etc/php.d/
but no separate config file for the command line version, even though the php-cli package is installed.
You have two options:
-c
argument to indicate the ini file locationphp-cli.ini
file on/etc/
From the official PHP manual: