James Vince James Vince - 2 years ago 259
PHP Question

Where does MAMP keep its php.ini?

I have recently got a mac an am not used to developing on a mac at all.

I have MAMP Pro I did a locate on

and got this:

$ locate php.ini
/Library/Application Support/appsolute/MAMP PRO/conf/php.ini

I changed the name of all of them. Restarted MAMP. It loaded without a hitch (I know odd right?). I am using PHP version 5.2.

All of these files are now different names (done one by one for process of elimination).
So I figure restart the mac. Same, MAMP loaded no problems, even though all of the
files had been move. On Lamp this that wouldn't even load. But either there is another
file I'm missing (quite possible I don't know how to
), MAMP is really intelligent and just pulls in all of them (less likely) or it doesn't use one.

Answer Source

Note: If this doesn't help, check below for Ricardo Martins' answer.

Create a PHP script with <?php phpinfo() ?> in it, run that from your browser, and look for the value Loaded Configuration File. This tells you which php.ini file PHP is using in the context of the web server.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download