InMotion Hosting Support Center

There are a few common errors that occur in Wordpress and other PHP-based programs that use the php.ini for certain settings. One of the most common of these settings is the maximum upload filesize ("upload_max_filesize"). This is a setting commonly found within a file known as the php.ini file.  Here's an example screenshot of a program with max file size limits exceeded during an upload attempt:

Upload error occurring in Wordpress due to PHP.INI limit

Error text: file_name" has failed to upload due to an error - This file exceeds the maximum upload size for this site.

You will need to increase the allowed memory in your php.ini file. The instructions below will show you on how to fix the php memory error by adjusting the appropriate sections of your local php.ini file.

Fixing the "Maximum upload size exceeded" Error

  1. Login to your cPanel.
  2. Scroll down to the FILES section of your Cpanel, and then click on the icon labeled FILE MANAGER.
  3. Use the File Manager to navigate to the web root. For more information on understanding your web root or document root, see What folder are my website files located within?
  4. Locate the php.ini file in your public_html folder. If you do not have one, our Technical Support team can place a default one in your account, or you can create a blank file by clicking on the New File icon and naming it php.ini so you can edit and add your own settings. Once you have a php.ini file, click on the file name to highlight it in the right side of the File Manager. If you need further information on editing with the File Manager editors, go to Using the File Manager Code Editor.
  5. Search the php.ini file for the following text:

    ; File Uploads ;
    ; ;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 128M

  6. The file_uploads should be set to "on" and "Maximum allowed size for uploaded files" should be set to the file size that you need.
  7. Click the Save Changes button to save your changes.

This change affects all files within the directory that a php.ini is saved, unless the file is set to be recursive.  If it is set to be recursive, then it affects all directories as per the setting in the .HTACCESS file.  For more information, see How can I make my php.ini file recursive?

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Max Upload size Change
HTTP Error - Wordpress Upload Media (Large Filesize)
Maximum upload file size in Opencart
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-09-22 7:05 am
i find it clear enough, am comfortable with the way it is right now
n/a Points
2015-02-10 8:25 am
it is very helpful for me
n/a Points
2015-08-18 8:59 am

Please what if i am using my PC as local host, how do i solve this same issue?

9,460 Points
2015-08-18 9:07 am
Hello Asimix,

What are you using as your webserver on your localhost?

Best Regards,
TJ Edens
n/a Points
2015-08-19 4:31 am

I am using WAMP SERVER. Thanks alot. Please any idea how to upload sample_data contating pictures and media in general to a wordpress theme like interior woo commerce. Thanks.

32,263 Points
2015-08-19 12:04 pm
Hello Asomix,

Sorry for the problem with WAMP. We unfortunately do not support it as it involves the use of a server outside of the typical hosting environment. Our answers are based on a hosting server installation. Typically, in order to upload files (like graphics), you would need to know how to use FTP - that would be the best way to put files into the website.

If you have any further questions or comments, please let us know.

Arnel C.
n/a Points
2015-08-19 4:32 am

i am using WAMP. Thanks

n/a Points
2015-09-10 11:43 pm

First am a creative designer and not a teche guy... but i use to work with the help of google. when i tried to upload a theme it says excwwds the upload limit 2M. and tried to solve it the way it is mentioned. But PHP.ini file was missing in my folder. then i created it and copied the code which is given here and changed the limit alone and saved it. But still it is showing me the same error. Can u pls help me to take it through.

36,928 Points
2015-09-14 9:51 am
Hello saasin,

Did you also make sure the php.ini file is set to be recursive?

Kindest Regards,
Scott M
n/a Points
2016-03-23 12:51 pm


On my webserver, I can't find a 'php.ini' file. I created one, and copied the code snippet from this page, but it hasn't increased the file size.





32,263 Points
2016-03-23 1:27 pm
Hello Seth,

Sorry for the problems with the PHP.INI file. The problem may be the file itself (based on its entries), or that the file is not applying to the installation. Try making the file recursive. We have a tutorial that can show you how to do this. If that doesn't help, then please submit a verified support ticket to have the php.ini file placed in your account.

If you have any further questions or comments, please let us know.

Arnel C.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

13 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!