How to increase the WordPress file upload limit from cPanel
The CMS may block large files when the PHP limit is lower than the theme, plugin, image, or backup size you want to upload. On shared hosting, the safest way to change it is from cPanel, using MultiPHP INI Editor for the correct domain.
This guide helps you raise the limit without touching server configuration or using root access. If your plan has a platform maximum, the final value cannot go above that cap.
Before you begin
- Have access to cPanel and the CMS dashboard.
- Confirm the domain or subdomain where the site is installed.
- Note the file size you want to upload so you can choose a realistic value.
- Make a copy of any configuration file if you decide to review changes with File Manager.
Steps
- Open the CMS dashboard and go to Media to check the current maximum upload size.
- Log in to cPanel and open MultiPHP INI Editor from the software section.
- In Basic Mode, choose the domain where the site is installed; do not choose another domain or Home Directory if you only want to affect one site.
- Find the directives
upload_max_filesize,post_max_size,memory_limit,max_execution_time, andmax_input_time. - Set
upload_max_filesizeto the size you need, for example64Mor128M, depending on what your plan allows. - Set
post_max_sizeto a value equal to or higher thanupload_max_filesize; for example, ifupload_max_filesizeis128M, usepost_max_sizeat128Mor256M. - Check
memory_limitso PHP has enough memory to process the file; if your plan allows it,256Mis usually reasonable for the CMS. - Save the changes with Apply and wait a few minutes for PHP to read the new configuration.
- Return to the CMS, reload Media, and test the upload with a file that fits within the new limit.
Recommended values to check
| Directive | What it controls | Example value |
|---|---|---|
upload_max_filesize | Maximum size of each file that the CMS receives. | 64M or 128M |
post_max_size | Maximum size of the full request that the browser sends. | Equal to or higher than upload_max_filesize |
memory_limit | Memory available for PHP to process the file. | 256M if your plan allows it |
max_execution_time | Maximum time to run the upload or related process. | 300 |
max_input_time | Maximum time to receive data sent to the site. | 300 |
Final verification
- The CMS shows a higher upload limit in Media.
- The test file uploads without showing a maximum-size error.
- The site still opens without error 500 after saving the changes.
- The correct domain keeps the expected PHP version.
Common errors
- The CMS still shows the previous limit → The change went to another domain or PHP has not reloaded the configuration yet → check the domain selector in MultiPHP INI Editor and wait a few minutes.
- Error 500 appears after the change → One value is too high or incompatible with the plan → return to more conservative values and test again.
- The upload fails even though the size changed → The file exceeds
post_max_size, memory, or execution time → review every directive in the table, not onlyupload_max_filesize.
When to ask for help
Open a ticket if cPanel does not show MultiPHP INI Editor, if the limit does not change after checking the correct domain, or if you need to upload files larger than the maximum allowed by your plan. Include the domain, file size, exact CMS message, and values you configured.
Recommended reading
Still need help?
If this guide didn’t solve your issue, our team can help you via ticket.