Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify php.ini in phpStorm

Tags:

php

phpstorm

I've set-up my PHP environment with the $PHPRC environment variable to point to the php.ini. Since $PHPRC is set during bash start-up, it's never set for phpStorm. This means phpStorm is using the wrong php.ini for CLI. This is especially anoying since I do a lot of PHPUnit testing.

How can I make phpStorm using the same php.ini? I'd prefer to have a possibility to specifiy the php.ini somehow in phpStorm, but I cannot find such an option.

In case this matters, I'm on OSX using MAMP PRO 2.1.

like image 731
BetaRide Avatar asked Apr 19 '26 17:04

BetaRide


1 Answers

You could do it like this:

1.: Create your run configuration for the test

2.: Add your php.ini path to your command line/interpreter options

like image 123
dan-lee Avatar answered Apr 22 '26 06:04

dan-lee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!