WordPress fix: The uploaded file exceeds the upload_max_filesize directive in php.ini

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.

Hosting I’m using: (60% discount)
Where I get my domains:
WP plugins I’m using:
PayPal tip jar:
Some of the above links might be affiliate links.

And you can’t find this freaking php.ini?
No worries, I’ll show you how to fix this issue in a 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:

My website setup & recommendations:
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!

Nguồn: https://svdpch.org/

Xem thêm bài viết khác: https://svdpch.org/cong-nghe/

28 thoughts on “WordPress fix: The uploaded file exceeds the upload_max_filesize directive in php.ini”

  1. New video available with easier and faster way to fix this issue! https://youtu.be/FTP8TVNf0yI

    This fix was suggested by Jo Hum , Paul45 & Dawson Jackson. Thanks!

  2. Thank you for the great tutorial I really appreciate it. ♥ I haven't gotten it to work for me yet because I'm using GoDaddy but they don't have a cpanel, – I have a Plesk panel… 🙁 . I create the file PHP.ini, but they don't have a PHP Processes on Plesk that I can find or when I google it. – Any suggestions? Thanks 🙂 ♥

  3. hey i am using infintyfree hosting after creating php.ini file i couldn't't edit it. there is no such option to edit…………plz help

  4. php Processes Widget is no longer available with current versions of Cpanel(2019 Onwards).Alternatively make changes under MUlti PHP Manager by switching to an older version of PHP as the "Current Version" and the saving your changes.This will kill all processes on the old version and thereafter you can switch to the latest PHP Version.


  5. well, there is one more way which is a lot easier then any Goto Cpannel -> Multi Php INI Editor -> Select your domain -> edit -> go down to the table you will find upload max file size -> 1024->2048 -> click save and DONE !!! you are good to go now.

  6. Hello! I am not able to do this through godaddy because I use wordpress offline using xampp. So any other way to go around this filesize directive ish?

  7. Hi i Couldn't find the PHP Process in the first method and i tried the second method by Jo Hum and in the "switch to Php options" dropdown is not appearing ….could you plz help me out to rectify this error.

  8. So much trouble, you can also configure from CPanel "MultiPHP INI Editor" , Configure PHP INI basic settings, (For Megabytes remember use only "M" and not "MB")

  9. I Have a wordpress ecommerce website, but prices do not appear on main page or product page. It also has different prices set for Australian prices in countries other than the US. The prices show up for IP addresses outside the US, but does not show up within the US.


Leave a Comment