When I installed php5 using apt-get
, it seemed to be configured to use:
/etc/php5/cli/php.ini
for the cli binary/etc/php5/apache2/php.ini
when running through apache
I cannot find anything in any configuration files that seems to set up this behaviour.
I want to do the same thing with php7. I've compiled it with:
--with-config-file-path=/etc/php7/apache2/
--with-config-file-scan-dir=/etc/php7/apache2/conf.d/
But that seems to make it use that directory for both the cli and apache (when I do php -i
I see it loaded the php.ini
in /etc/php7/apache2
).
How do I make it use a different file for the cli?