WordPress Fix: The Uploaded File Exceeds The Upload_max_filesize Directive In Php.ini

WordPress Fix: The Uploaded File Exceeds The Upload_max_filesize Directive In Php.ini


Hey, I just met you and this is crazy. I make helpful tutorials, so tip me maybe?

Try to upload a wordpress theme or plugin, but it gave you an error: The uploaded file exceeds the upload_max_filesize directive in php.ini.

And you can’t find this freaking php.ini?
No worries, I’ll show you how to fix this issue in few minutes

try this video if the method in this video didn’t work:

Steps to add php.ini to WordPress:
1. In Cpanel under “”files”” select “”File Manager””
2. In Public_html, create new file by pressing “”+ File”” sign in top left corner
3. Name the file php.ini and click save
4. Find php.ini in the folder, right-click it and choose “”edit”” and click “”edit”” again
5. In the text editor add following code:

memory_limit = 256M
upload_max_filesize = 50M
post_max_size = 50M
max_execution_time = 300

6. Click “”Save changes”” in the top right corner and close the window
7. Go to Cpanel, and scroll down until you find “”PHP Processes””
8. Click “”Kill Processes””
9. You can now install a new theme or plugin up until 50Mb, if you want it to be more, just increase the numbers in the code.

Where the heck is Cpanel? Check this:

You’ll find more tutorials here:

If you have any questions, leave me a comment below, I will be glad to help. I hope you liked this tutorial!

21 Comments

21 Replies to “WordPress Fix: The Uploaded File Exceeds The Upload_max_filesize Directive In Php.ini”

  1. I tried at least 6 other videos giving me Different processes. At least yours was GoDaddy specific. I think that helped. THANK YOU!!!

  2. oh man, I followed the exact thing that you did but for me it is still not working….is there another way of doing this?

  3. It’s not working for me :(,
    I did everything on the video exactly how you said :'( I have godaddy too!
    maybe my zip file is too large? im trying to upload the x theme

  4. Won’t work for me,  still stuck at 2MB limit.  I tried creating this file in both the public and wpadmin folder.  Any ideas?

  5. Didn’t work. What would be the point of killing the processes? Does that not undo what we just did?

  6. Hahaha fixed man but the Arnold popped out and said *f**k u lol i couldnt stop laughing, because i was like WTF …

  7. There is a MUCH easier way: Go to cPanel >> PhP Select Version >> Switch to PhP Options >> upload_max_filesize >> change from 2M to 128M >> Save >> DONE!!

Comments are closed.