Multiple php.ini files

503 Views Asked by At

I'd like to use multiple .ini files in a certain PHP instance.

php-cgi -c /etc/php5/cgi/php.ini -c /var/www/php_oc.ini

I tried something like this but it uses the last defined config file. I'd like to use the default ini as the base and then override directives in the second without using ini_set().

I am using Cherokee as well.

1

There are 1 best solutions below

1
xdazz On

Try:

PHP_INI_SCAN_DIR=/var/www
export PHP_INI_SCAN_DIR