How to Increase the PHP Upload Limit in cPanel
- Ali GhanimatiAuthor
- Last updated
- 1 minuteReading time
- 518Views
- Ali Ghanimati
- Last updated:
- 1 min read
- 518 views
A file upload can fail even when the hosting account has free disk space. PHP limits individual files and the whole request, and your application or a proxy can impose its own limit. The error may appear in WordPress, but the setting that controls it can live elsewhere.
Record the file size, error, and affected domain. Check the existing effective limits first. Changing settings for a different domain or PHP version will not affect the upload you are testing.
Adjust limits for the correct domain
Open MultiPHP INI Editor or the PHP options tool your provider uses. Select the affected domain. Set upload_max_filesize to the needed size and post_max_size a little higher to allow for request overhead. Use values your plan supports. Review memory and timeout settings only as needed for the actual workload. PHP settings reference.

Verify in the website
Check the upload limit the application reports, then upload a file slightly above the previous limit. For an HTTP 413, check the web server, proxy, or CDN body limit. If the PHP value appears unchanged, ask the host which PHP handler and configuration apply to that domain. Verify that the completed upload opens successfully.


