I just spent about 30 minutes trying to figure out why my php.ini file was not updating on MAMP. (This is not MAMP Pro–if you are using pro then edit it in the template)

So, I’m hoping that this post will help those of you who are having issues doing the same.

First. Where is the php.ini file located?
/Applications/MAMP/bin/php/php5.2.17/conf/php.ini
or
/Applications/MAMP/bin/php/php5.3.6/conf/php.ini

Select phpInfo on your start screen of MAMP to see which version is running on your machine before editing. Or you may end up editing the wrong php.ini file and compounding the problem. (It’s right at the top of the page next to Start) Once on the phpInfo page do a search for “php.ini” and look at the file location.

Second, Depending on your php.ini settings, everyone uses different ones, you MUST restart MAMP for the changes to show up. This is what was making me crazy. I made the changes, refreshed the phpInfo page and nothing changed. But, restarting MAMP and all of the sudden they were all fixed. Makes sense, but not until after I figured it out.

Hope that helps!

Categorized in:

blog,

Last Update: April 14, 2012