Setting PHP Upload Max Size

If you encounter an error like:
"trace.zip exceeds the maximum upload size for this site"
or
"the uploaded file exceeds your upload_max_filesize directive",
you may need to increase the PHP upload max size.

This setting can be applied at three levels:

  • Website-specific
  • Server level (applies to websites under that server’s application role)
  • Global level (default for all application roles and websites)

Steps to Increase PHP Upload Max Size for a Single Website

  1. Navigate to Website Dashboard

    • Locate the website in the control panel.
    • Open the Advanced dropdown menu.
  2. Access the PHP.ini Editor

    • Click Developer Tools.
    • Scroll to the php.ini editor section.
  3. Add or Update the Directive

    • Enter the directive:
      upload_max_filesize
    • In the Text field, input the desired maximum value (e.g., 200M for 200 megabytes).
  4. Set Post Max Size

    • Similarly, update post_max_size to the same value as upload_max_filesize.
  5. Save Changes

    • Click Create to apply the new settings.

Tip

  • Values must be specified in megabytes (M).
    • Example: For 200 MB, use 200M.
  • Ensure post_max_size is set equal to or greater than upload_max_filesize to avoid upload issues.
Was this answer helpful? 0 Users Found This Useful (0 Votes)