A website's upload form can reject a file before the application processes it. The PHP upload limit sets the largest permitted file, and cPanel's Select PHP Version tool lets you raise that limit when your site needs larger uploads.

PHP uses two size settings for uploads. upload_max_filesize limits each file, while post_max_size limits the entire request, including all files and other form data. The total request needs extra room beyond the file itself, so equal values do not permit a file that fills the entire request limit.

Domains inherit Account Global Settings for the selected PHP version unless they have overrides under Per Domain Settings. Larger limits allow larger requests to consume server resources, so the appropriate values depend on what your sites need and what your host permits. An application's own upload restriction or a web-server limit can still be lower than PHP's limit.

Some hosts provide MultiPHP INI Editor instead of Select PHP Version.
Related: Increase PHP memory for processing large uploads

Steps to change PHP upload limit in cPanel:

  1. Open Select PHP Version from the Software section of your signed-in cPanel account.
  2. Click the Options tab under Account PHP Settings.
  3. Open the post_max_size choice list.
  4. Choose a total request size that accommodates your intended uploads.

    The M suffix means megabytes. Choosing a value saves it automatically; there is no separate Apply button. The highest available value is set by the host, with 1024M at the top of the range shown here.

  5. Open the upload_max_filesize choice list.
  6. Choose the required per-file upload limit from the list.

    post_max_size must be at least as large as upload_max_filesize, with room for the rest of the request. PHP recommends a larger post_max_size. Both lists shown here stop at 1024M; when both settings use that ceiling, the largest file must be smaller to leave room for the request overhead.

  7. Reload the Options page using your browser's reload command.
  8. Confirm that post_max_size and upload_max_filesize still show the values you selected.

    The reloaded page shown here retains 1024M for both settings. A reverted value means the change did not persist; an unavailable or rejected limit needs your hosting provider's help.

Share this guide