Blog

How to increase the maximum file upload size limit in PHP & phpMyAdmin?

Introduction –

By default, cPanel establishes a maximum file upload limit of 2GB. Please refer to this guide to raise the upload threshold.

Procedure-

  • 👉 Step-1: Log into WHM
  • 👉 Step-2: Navigate to “WHM / Software / MultiPHP INI Editor”
  • 👉 Step-3: Select the version of PHP that your site uses
  • 👉 Step-4: Increase the following variables
    1. upload_max_filesize
    2. post_max_size (This should be larger than or equal to upload_max_filesize)
    3. memory_limit (This should be larger than or equal to post_max_size)
    4. max_execution_time (Optional, but can prevent timeout errors for large files)
  • 👉 Step-5: Click “Apply”
  • 👉 Step-6: Repeat for all versions of PHP that you require larger file upload sizes for.

NOTE: Please note, the maximum size for these variables is 2GB.



Share this post


Latest Posts
Follow Us
Get the latest news delivered daily!