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

WordPress Ecommerce with WordPress and WooCommerce Setting Up WooCommerce Installing a WooCommerce Theme

Shaikh Rahman
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.

You 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!