How to Increase PHP Upload File Size Limit Print

  • 0

If WordPress or another application is showing an error like "The uploaded file exceeds the maximum upload size", you need to increase the PHP upload_max_filesize setting. This can be done easily from the Webfort control panel.

Steps to Increase the Upload Limit

  1. Log in to the Webfort control panel and go to Websites.
  2. Select the website you want to update.
  3. Click Advanced in the top navigation, then select Developer Tools.
  4. Find the PHP.ini editor section.
  5. Set the following two directives:
    • Directive: upload_max_filesize - Type: text — Value: e.g. 200M
    • Directive: post_max_size - Type: text — Value: e.g. 200M
  6. Click Create (or Save) to apply the changes.

Note: Values must be specified in megabytes with an uppercase M - for example, 200M for 200 megabytes. It's important to set both upload_max_filesize and post_max_size, as WordPress requires both to allow larger uploads.

Why Set Both Directives?

  • upload_max_filesize - controls the maximum size of an individual file upload.
  • post_max_size - controls the maximum size of the entire POST request, which must be equal to or larger than upload_max_filesize.

If you're unsure what value to set or the error persists after making changes, contact our support team and we'll help you get it sorted.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution