Wrong PHP configuration file chosen when I create an Interpreter
I'm trying to follow the instructions here: https://pixelfear.com/blog/xdebug-laravel-valet-phpstorm-composer but when I choose then php in `/usr/local/bin/php` PhpStorm chooses the `php-cli.ini` file instead of php.ini.
Help please.
Please sign in to leave a comment.
Hi there,
PhpStorm does not choose anything here. It's the way how your OS/PHP/environment is configured to work.
It's PHP itself that tells IDE what config file it uses. You can just type "php -i" in your terminal/console and see what .ini file will be used there (very top part of the output) -- PhpStorm parses all that info and displays for you.
P.S.
On some (if not most) of Linux/Mac setups PHP will use one php.ini for CLI environment and different one when used via Apache.