How to Increase Upload Limit in cPanel

You are here:
Estimated reading time: 1 min

To increase the upload limit in cPanel, such as for uploading large files through PHP scripts (like WordPress or file upload forms), you need to adjust PHP configuration settings. Here’s how to do it:


Common Settings to Change:

To increase the upload size, you should adjust these PHP settings:

  • upload_max_filesize

  • post_max_size

  • memory_limit (optional but related)


Method 1: Using MultiPHP INI Editor (Most Recommended on Shared Hosting)

  1. Log in to your cPanel.

  2. Scroll to the Software section and click MultiPHP INI Editor.

  3. Under Basic Mode, select your domain.

  4. Set the following:

    • upload_max_filesize = 128M (or higher)

    • post_max_size = 128M (or higher)

    • memory_limit = 256M (or higher, optional)

  5. Click Apply.

Make sure post_max_size is equal to or greater than upload_max_filesize.


Method 2: Edit php.ini File (If Your Hosting Allows It)

  1. In File Manager, go to your domain’s root (e.g., public_html).

  2. Open or create a file named php.ini.

  3. Add or update:

    upload_max_filesize = 128M
    post_max_size = 128M
    memory_limit = 256M
    
  4. Save the file.


Method 3: Edit .htaccess File

If you can’t use php.ini, try .htaccess:

  1. Go to public_html and open .htaccess.

  2. Add:

    php_value upload_max_filesize 128M
    php_value post_max_size 128M
    php_value memory_limit 256M
    
  3. Save changes.

This method may throw a 500 error if your server doesn’t support php_value in .htaccess.


Method 4: Modify wp-config.php (For WordPress)

  1. Open wp-config.php.

  2. Add:

    @ini_set('upload_max_size' , '128M');
    @ini_set('post_max_size', '128M');
    @ini_set('memory_limit', '256M');
    

Was this article helpful?
Dislike 0

Author

Joshua

Web Hosting Geek Technical Support Staff G Online Sites