PHP.ini location on El Capitan

delphirules picture delphirules · Dec 7, 2015 · Viewed 35.9k times · Source

Simple question: where is the correct PHP.INI location in Mac OSX El Capitan?

I tried to update the one in /etc folder, but nothing changed.

Answer

Jirson Tavera picture Jirson Tavera · Jan 28, 2016

i know three ways:

  1. php -i | grep php.ini
  2. php --ini
  3. create php file with following line: <?php phpinfo(); and open the file in the browser