cPanel maximum upload file size

cPanel: Change / Increase Maximum Upload File Size

Don’t let a large file hold you back from uploading!

Here’s my story. I was moving my website from one server to another. With the “Duplicator” plugin in WordPress, I exported one database and one large compressed website file. The database file went in quickly through the file upload tool, but the compressed file didn’t, because it was over 600 MB.

You can change the maximum size of an uploaded file in cPanel. Go to your cPanel and find MultiPHP INI Editor in the menu.

MultiPHP INI Editor icon

You will see a table of PHP settings.

Upload file size limit table

Scroll to upload_max_filesize and set it to a value larger than your file. Then raise post_max_size as well: the upload is sent as part of a POST request, so post_max_size must be equal to or larger than upload_max_filesize. WordPress uses the smaller of the two as its maximum upload size.

For example, for a file of a little over 600 MB:

upload_max_filesize = 1024M
post_max_size = 1024M

The PHP manual also notes that memory_limit should generally be larger than post_max_size. Check its value in the same table, and raise it only if your hosting plan allows it.

Click Apply to save. Ta-da! Some hosts cap these values, so if the new limit doesn’t take effect, contact your hosting provider.

Leave a Comment

Your email address will not be published. Required fields are marked *