MAMP: How to edit the php.ini file


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?

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!


  1. Thanks a lot!!! I was indeed modifying the wrong php.ini. Looking in the phpinfo page pointed me to the correct. Thanks again!

  2. Thank you! This was so helpful. Probably visited 5 useless sites before finding this post. Was exactly what i needed. Glad to see I’m not the only one struggling with this, but this info saved me. It seems weird to me that you have to go into the bin folder. I was editing the config folder in: Applications/MAMP/conf/PHP5.5.3/php.ini.

    I didn’t understand why it wasn’t working. But it seems like editing the same file in the bin/ folder works. Thanks, i was pulling my hair out.


Please enter your comment!
Please enter your name here