How to Increase PHP Upload Limit

In some cases, default server settings may not let you upload larger files via your website. This tutorial shows how to increase PHP upload limit in cPanel.

Step 1 — Opening up PHP Settings

Log in to your cPanel and navigate to Select PHP Version –> Switch to PHP Options:

Select PHP Version

Switch to PHP Options
Step 2 — Changing Upload Limit values

Let’s say you are having an error while trying to upload a 19 Mb WordPress theme file through your WordPress Admin Area. 
The following configuration illustrates appropriate settings for this example:

  • Set memory_limit to 128Mmemory_limit describes the maximum amount of memory a script can allocate. It is recommended to set this to the maximum available value. Letter M stands for megabytes.
  • Set upload_max_filesize to 64Mupload_max_filesize describes the maximum size of an uploaded file. It must be larger than the theme file mentioned in the example.
  • Set post_max_size to 64Mpost_max_size has a similar functionality to upload_max_filesize. Make it larger than 19 MB (theme file) as well

Increasing Upload Limits

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Log into Webmail

Webmail is a great feature offered by cPanel. There are two ways that you can log into webmail:...

How Do I Create and Remove an Addon Domain

An addon domain is a secondary domain hosted on a cPanel account. Addon domains typically have...

How Do I Create a MySQL Database, a User, and Then Delete if Needed?

Databases offer a method for managing large amounts of information over the web easily. They are...

How to Generate/Download a Full Backup

A full backup is a backup of all of your files, email, databases, etc. Once initiated, you must...

How to change permissions (chmod) of a file

Permissions can be very important when it comes to hosting your website. Permissions can allow...