How to increase the upload_max_filesize limit in cPanel

If you’ve ever tried uploading a large file to your website and received an error like:

“The uploaded file exceeds the upload_max_filesize directive in php.ini”,
it means your hosting account has a lower file upload limit set in PHP.

This guide shows you how to increase the upload limit in cPanel easily — no coding knowledge required

Step 1: Log in to Your cPanel Account

  1. Go to your cPanel login page.

    • Example: https://yourdomain.com/cpanel

  2. Enter your username and password to access your hosting dashboard.

Step 2: Locate the “Select PHP Version” or “MultiPHP INI Editor”

Depending on your hosting environment, you can manage PHP settings from either:

  • Select PHP Version (for CloudLinux environments), or

  • MultiPHP INI Editor (for general cPanel environments)

 

Step 3: Open the PHP Options or INI Editor

If using Select PHP Version:

  1. Click on “Options” after selecting your current PHP version.

  2. Scroll down to find upload_max_filesize.

If using MultiPHP INI Editor:

  1. Choose your domain from the dropdown list.

  2. You’ll see editable PHP directives including upload_max_filesize.

Step 4: Increase the upload_max_filesize Value

  • Locate upload_max_filesize

  • Change it from the default (e.g. 2M) to your preferred size (e.g. 64M or 128M)

  • Optionally, also adjust:

    • post_max_size → should be equal or larger than upload_max_filesize

    • memory_limit → should be larger than post_max_size

Example:

upload_max_filesize = 128M
post_max_size = 128M
memory_limit = 256M

Step 5: Save Changes

After modifying the values, click “Save” or “Apply”.
Changes take effect immediately.

Step 6: Verify the New Upload Limit

To confirm that the new upload limit is applied:

  1. Create a new PHP file in your public_html directory named info.php

  2. Add this line inside:

     
    <?php phpinfo(); ?>
  3. Visit https://yourdomain.com/info.php in your browser.

  4. Search for upload_max_filesize — your new value should be visible.

Common Issues

  • Still showing old limits?
    → Try changing values in both Select PHP Version and MultiPHP INI Editor.

  • Website still not accepting large uploads?
    → Check your CMS (e.g. WordPress) settings — some platforms have their own upload limit inside their dashboard.

 

  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

6 Ways To Fix 500 Internal Server Error

If you’re a regular WordPress user, having 500 Internal Server Error should not be alien to you....