php-tutorial

The uploaded file exceeds the upload_max_filesize directive in php.ini

If you run into this error message:

The uploaded file exceeds the upload_max_filesize directive in php.ini

when trying to upload a file or plugin or anything to your WordPress website, AND you are hosting your website through a web host that uses cPanel as their hosting control panel (which is a widely used hosting control panel unless the hosting company has created their own), then here are steps that should fix your problem.

  1. Login to your cPanel hosting control panel.
  2. In the top search bar type in the letters: php
  3. This will filter the results so that you should find a module titled “Select PHP Version”. Click that. (If you don’t, see troubleshooting below).
  4. On the right side of the page is a blue link titled, “Switch to PHP Options”. Click that.
  5. scroll down the page near the bottom of the list to where it says, “upload_max_filesize”. to the right it should give a number, such as 2. Click the number and you will be able to change it. Change it to what you need (you can look at the file size of what you are wanting to upload, if not try 8).
  6. Then click “Apply”.
  7. Then click the “Save” button.
  8. If you have a caching plugin installed in your WordPress site, you may need to clear the cache. There is no harm in just trying to upload your file again, but if it does not work, then look into clearing your cache and trying again.

Images

Troubleshooting

If the above steps did not look the way I described, then  look in your cPanel for where you can change it’s “Theme” and change it to “paper_latern”. Each theme has its own layout and even features.

Hope that helps.
Leave a comment if it did or if you have questions.

thanks for stopping by

No comments yet.

Leave a Comment. Join the Conversation!
Did that help? Do you have questions?

Need Help with Your Website?

Why not get it done FASTER and EASIER with help from a friendly, helpful Professional?

Call (707) 965-9727

Or use our Contact Form

I am located in Northern California, U.S.A.

Great!

Pin It on Pinterest

Share This

Share This

Share this post with your friends!