Search code examples
phppearpeclphp-ini

Pecl install when using multiple php.ini files


I'm installing APCu on my vagrant box, but found that pecl didn't have my ini files set on it, so I've added it manually & PHP in apache is now wokring fine, however my CLI uses a different php.ini file. Is there an easy way to get installs to update both files at the same time?


Solution

  • No, there is no out-of-the-box solution. pecl (which is pear -c pecl.php.net) only can update a single php.ini file.

    What you could do is create one ini file and symlink it into the conf directories of each php version. (See "Scan for additional .ini files in" in php --ini).