The Easy Way to Increase File Upload Size in WordPress (No Need to Code!!!)
Frank Olivo is the founder of Sagapixel. Frank is our resident authority on SEO and PPC advertising and is a frequent contributor to a number of blogs.
The Easy Way to Increase File Upload Size in WordPress
Fixes a common issue with Godaddy and Namecheap hosting without touching a php.ini file
Godaddy and many other shared hostings’ default settings are set to not allow for files over 2mb to be uploaded. This is very easily remedied by changing some basic settings within cPanel.
You do not need to start messing with pnp.ini files or even know how to code.
Many of Google’s top results on how to increase the file upload limit will have you running in circles and looking for the location of the php.ini file on Godaddy?” (which you won’t find) when all you need to do is change a setting in the php settings.
This guide will walk you through everything…
If you prefer to watch a video, scroll to the bottom!
How to Fix “File Exceeds the Maximum Upload Size for This Site.”
Addresses the “exceeds the maximum upload size for this site” error on Godaddy, Namecheap, Bluehost, and a number of other common shared hosting providers.
You probably got this infuriating “uploaded file exceeds the upload_max_filesize directive in php.ini.” with Godaddy hosting:
By default, many budget shared hosting sets a file limit of 2mb for file uploads. They do this to prevent your average newbie from uploading massive 24mb photos to the server when they should be uploading photos under 1mb. If this is the case with you, reduce the size of your photo.
Where is the php.ini file in Godaddy?
You don’t need to create or touch a php.ini file to address this issue in Godaddy hosting. For whatever reason, the top results all tell you to create a pnp.ini file and start coding, though there is a much easier way to address this.
You do not need to create any files and you don’t need to know how tocode. You can simple log into your cpanel, change a few settings and you should be ready to go.
Step 1 – Log into Your Cpanel
Log into your hosting and scroll down to the “software” section of your Godaddy cPanel.
Step 2 – Click on “select PHP version.”
While you’re in here, it’s probably best to make sure that your hosting is set to version 7.1, but make sure that you check that your theme and plugins are compatible with it (I assume no liability for you messing up your site, by the way, so make sure that you have a valid backup of everything before you change anything).
On this screen, you’re going to
Step 3 – Click on “Switch TO PHP Options”
Step 4 – “Increase your upload_max_filesize”
The three number in orange are the numbers that you need to change. Click on each one and a drop down will appear; select the new value and click “apply” (if you forget to click apply, it won’t take). Once you’ve changed all three values, click on the save button below “upload_max_filesize.”
You Have Increased Your Max File Size Upload
This is a really easy, fast fix, but for whatever reasons, the top results on Google all tell you to create a pnp.ini file, which often doesn’t work to fix the issue with Godaddy’s file upload limits on shared hosting plans. I’d like to help people avoid the headaches involved with this and finally start outranking those other convoluted, yet ineffective solutions, so please comment and link to this post so that we can get the word out that there is an easy fix to Godaddy’s 2mb limit on file uploads on shared hosting.
How to fix “the uploaded file exceeds the upload_max_filesize directive in php.ini” in 5 Easy Steps
Log into cPanel
Click on “select php version”
Click on “switch to php options”
Select “upload_max_filesize,” increase it to 64mb, and click apply
Was this article insightful? Share it!
Share on facebook
Share on google
Share on twitter
Share on linkedin
1 Mall Dr. Suite 405 Cherry Hill, NJ 08002
1500 Sansom Street Second Floor Philadelphia, PA 19102