Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Shaikh Rahman](https://secure.gravatar.com/avatar/ced46bc052baadc64002649a0724495a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Shaikh Rahman
6,566 Points"The uploaded file exceeds the upload_max_filesize directive in php.ini."
I don't find any effective solution. i using local host server using Mamp . In wp-admin folder i don't find any php.ini file .So create a file save as "php.ini". I wrote here these words "upload_mar_filesize = 64M; post_maz_size = 32M; safe_mode = off; " but i still have my problem.
Christian Saborio
127 PointsChristian Saborio
127 PointsYou won't find the php.ini inside wp-admin folder, it is located inside the MAMP folder in your applications. Look at your MAMP panel, click on Preferences and then PHP, you will find your PHP version. In my case, I am using 7.1.8 as seen here.
To find the php file, navigate to this path:
/Applications/MAMP/bin/php/php7.1.8/conf/php.ini
Your path may be different if you have a different version of php installed, but you get the gist.
Modify php.ini (make a backup first) and then stop and start the MAMP server and you should be good to go!