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
-
Navigate to Website Dashboard
- Locate the website in the control panel.
- Open the Advanced dropdown menu.
-
Access the PHP.ini Editor
- Click Developer Tools.
- Scroll to the php.ini editor section.
-
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).
- Enter the directive:
-
Set Post Max Size
- Similarly, update
post_max_size
to the same value asupload_max_filesize
.
- Similarly, update
-
Save Changes
- Click Create to apply the new settings.
Tip
- Values must be specified in megabytes (
M
).- Example: For 200 MB, use
200M
.
- Example: For 200 MB, use
- Ensure
post_max_size
is set equal to or greater thanupload_max_filesize
to avoid upload issues.